Rollover

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