Crate doom_2038

Crate doom_2038 

Source

Constants§

DOOM_TS
The Unix timestamp for the Year 2038 problem: 2038-01-19 03:14:07 UTC. This timestamp represents the maximum value for a 32-bit signed integer.
SECONDS_IN_DAY
ammount of seconds in a day
SECONDS_IN_HOUR
ammount of seconds in a hour
SECONDS_IN_MINUTE
ammount of seconds in a minute
SECONDS_IN_YEAR
ammount of seconds in a year (why ts scarily small)

Functions§

doom
Runs the doom countdown either continuously or just once, based on the countdown flag.
print_time_left
Displays the time left until whatever in a human-readable format.
time_left
Calculates the time left until the Year 2038 problem occurs, returning it as a Duration.