Goonstation 13 - Modules - Types

code/procs/datetime.dm

/proc/fromIso8601Convert ISO 8601 to BYOND time format (or epoch time if given argument for that)
/proc/isLeapYearreturns true if the year is divisible by 4, except for years that are divisible by 100. However, years that are divisible by 400 are also leap years.
/proc/toIso8601Convert BYOND time format to ISO 8601
/proc/addTimeAdd time to a given BYOND time format
/proc/subtractTimeSubtract time from a given BYOND time format
/proc/validateIso8601Validate ISO 8601 format
/proc/approx_time_textreturns a string describing approximately how much time this represents, useful for when you want to be vague if this already exists somewhere else I apologise but I couldn't find it