Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipData
(view source)
Revision as of 06:32, 13 June 2022
70 bytes added
,
2 years ago
no edit summary
Line 856:
Line 856:
end
end
−
--The implementation date for this ship. A 3-tuple of year, month, day (JST) as a table, or nil if unknown.
−
--EXPERIMENTAL, DO NOT USE. Spec for this feature may rapidly change.
function ShipData:implementation_date()
function ShipData:implementation_date()
if self._implementation_date ~= nil then
if self._implementation_date ~= nil then
Line 866:
Line 864:
end
end
return self._implementation_date
return self._implementation_date
+
end
+
+
function ShipData:implementation_date_string()
+
local date = self:implementation_date()
+
return not date and "??" or string.format("%s/%s/%s", date[1], date[2] < 10 and "0" .. date[2] or date[2], date[3] < 10 and "0" .. date[3] or date[3])
end
end
がか
cssedit, gkautomate
7,064
edits