Today to string

From Kolmafia
Jump to navigation Jump to search
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.

See Also

gameday_to_string() | gameday_to_int() | time_to_string() | now_to_string()