2038 Doom Countdown
A Rust CLI application that counts down to the Year 2038 problem, which is associated with the maximum value for a 32-bit signed integer.
Installation
To add the crate to your project, run:
Then, include it in your main.rs:
use ; // and other functions/constants
Features
Simple Documentation
-
fn doom(bool)- If the boolean is
true, it continuously counts down to the Year 2038 problem. - If
false, it displays the time left only once in a human-readable format.
- If the boolean is
-
fn time_left()- Returns the time left until the Year 2038 problem as a
Duration.
- Returns the time left until the Year 2038 problem as a
-
const DOOM_TS- Represents the 32-bit signed integer limit (2,147,483,647) as a
u64.
- Represents the 32-bit signed integer limit (2,147,483,647) as a
Usage
Running the Application
-
When you run
main.rsnormally, it executesdoom(false)to display the remaining time. -
To run the countdown continuously, provide one of the following arguments:
For example:
Example
Here’s a simple example of how to use the library in your main.rs:
use env;
use ;
Enjoy!
Thank you for using the 2038 Doom Countdown crate! If you have any questions or suggestions, feel free to reach out or contribute to the project.