You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jonathan Strong 82714c36e7 add --rfc3339-to-unix command to parse a datetime in rfc3339 and display it as unix timestamp 4 years ago
src add --rfc3339-to-unix command to parse a datetime in rfc3339 and display it as unix timestamp 4 years ago
.gitignore initial commit 4 years ago
Cargo.lock initial commit 4 years ago
Cargo.toml add --rfc3339-to-unix command to parse a datetime in rfc3339 and display it as unix timestamp 4 years ago
README.md prevent terrible syntax highlighting, hopefully 4 years ago

README.md

utcnow 1.0.0
Jonathan Strong <jonathan.strong@gmail.com>

current time in utc with non-cryptic interface.

for your own safety and well-being, local time functionality is not provided.

default output format is rfc3339 with trailing 'Z', e.g. '1999-12-31T23:59:59.999999999Z'

USAGE:
    utcnow [FLAGS]

FLAGS:
    -h, --help        help
    -r, --rfc2822     display in rfc2822 format
    -s, --seconds     display unix timestamp in seconds, instead of default nanoseconds
    -t, --timespec    display as <sec>,<nsec>
    -u, --unix        display elapsed nanoseconds since 1970-01-01T00:00:00Z
    -V, --version     version