Rollover

From Kolmafia
Revision as of 05:49, 31 January 2023 by Mcroft (talk | contribs) (added missing rollover function to wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

int rollover()

Returns the unix epoch time of the next rollover.

Code Sample

The following tells you how long until rollover.

if (rollover() - now_to_int() > 0) {
   print("There are " + (rollover() - now_to_int()) + " seconds until rollover.");
} else {
   print("Rollover is now.");
}


See Also

gameday_to_string() | gameday_to_int() | now_to_int() | now_to_string() | time_to_string() | timestamp_to_date() | date_to_timestamp()