collindutrow / holocene

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

holocene

Takes advantage of the chrono crate to provide a GNU date like interface for convert dates to the Holocene calendar.

Known issues

  • Timezone support is not implemented yet. UTC is assumed.
  • Years must be zero padded to 4 digits. E.g. 0001 instead of 1.

Example usage

View the built-in help message.

holocene --help

Get the current holocene date and time (UTC.)

holocene

Get 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"

About

License:MIT License


Languages

Language:Rust 100.0%