epoch_seconds
is a utility CLI program written in Rust to get the epoch seconds of an ISO8601 DateTime String
Run the following command cargo build --release
After, there should be a binary located in ./target/release
named epoch_seconds
Run the following command
./target/release/epoch_seconds ISO8601_DATETIME_STRING
To check the binary is built correctly, run the command
./target/release/epoch_seconds 2021-10-25T10:59:59-07:00
The command should result in
1635184799