Takes advantage of the chrono crate to provide a GNU date like interface for convert dates to the Holocene calendar.
- Timezone support is not implemented yet. UTC is assumed.
- Years must be zero padded to 4 digits. E.g.
0001instead of1.
View the built-in help message.
holocene --helpGet the current holocene date and time (UTC.)
holoceneGet the current holocene date and time (UTC) with custom formatting.
holocene "+%m-%d-%Y %H:%M:%S %z %Z %E"Get the holocene date for a specific date.
holocene -d "12/31/1970"holocene -d "1970/12/31"Get the holocene date for a specific date and time (UTC.)
holocene -d "12/31/1970 23:59:59"holocene -d "1970/12/31 23:59:59"Get a holocene date for a specific BCE date.
holocene -d "12/31/0337 BCE"holocene -d "0337/12/31 12:01:57 BCE"Get the holocene date for a specific date and time (UTC) with custom formatting.
holocene -d "12/31/1970 23:59:59" "+%m-%d-%Y %H:%M:%S %z %Z %E"