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