Difference between revisions of "Rollover"

From Kolmafia
Jump to navigation Jump to search
(added missing rollover function to wiki)
 
(No difference)

Latest revision as of 05:49, 31 January 2023

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()