Difference between revisions of "Today to string"
Jump to navigation
Jump to search
imported>Bale m |
imported>Fxer m (Clarifying what this function does, add note how it is calculated) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
}}| | }}| | ||
− | function_description=Returns the current date | + | function_description=Returns the current real-world date corresponding to the KoL game date, where rollover is the start of a new day, in an ISO basic format (YYYYMMDD).| |
needscode=yes| | needscode=yes| | ||
Line 20: | Line 20: | ||
}} | }} | ||
− | [[Category: | + | == Notes == |
+ | The value returned is calculated from timezone GMT-3:30. Since rollover occurs at 8:30pm MST (UTC 3:30) this makes rollover occur at "midnight." Changing your local system time affects which day mafia thinks it is, but "midnight" will always be pinned to rollover. | ||
+ | |||
+ | {{SeeAlso|gameday_to_string|gameday_to_int|time_to_string|now_to_string}} | ||
+ | |||
+ | [[Category:Miscellaneous Functions]] |
Latest revision as of 17:29, 2 June 2016
needs(code_samples);
Function Syntax
string today_to_string()
Returns the current real-world date corresponding to the KoL game date, where rollover is the start of a new day, in an ISO basic format (YYYYMMDD).
More Information
See this wikipedia article for more information.
Notes
The value returned is calculated from timezone GMT-3:30. Since rollover occurs at 8:30pm MST (UTC 3:30) this makes rollover occur at "midnight." Changing your local system time affects which day mafia thinks it is, but "midnight" will always be pinned to rollover.