Skip to content

collindutrow/holocene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages