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.

README.md 1.5KB

8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
8 months ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ```console
  2. $ utcnow -h
  3. utcnow 1.5.0
  4. Jonathan Strong <jonathan.strong@gmail.com>
  5. current time in utc with non-cryptic interface.
  6. $ utcnow
  7. >> 2023-08-31T18:20:06.190019513Z
  8. $ utcnow -R 1693505148834000000
  9. >> 2023-08-31T18:05:48.834000000Z
  10. $ utcnow -U 2023-08-31T18:05:48.834000000Z
  11. >> 1693505148834000000
  12. $ utcnow --unix
  13. >> 1693506028080252547
  14. $ utcnow --millis
  15. >> 2023-08-31T18:20:14.672Z
  16. $ utcnow --unix --millis
  17. >> 1693506584321
  18. USAGE:
  19. utcnow [FLAGS] [OPTIONS]
  20. FLAGS:
  21. -E, --est display in us/eastern timezone
  22. -h, --help help
  23. -m, --millis display unix timestamp in milliseconds, instead of default nanoseconds
  24. -0, --null terminate displayed time with null character instead of newline
  25. -r, --rfc2822 display in rfc2822 format
  26. -s, --seconds display unix timestamp in seconds, instead of default nanoseconds
  27. -t, --timespec display as <sec>,<nsec>
  28. -u, --unix display elapsed nanoseconds since 1970-01-01T00:00:00Z
  29. -V, --version version
  30. OPTIONS:
  31. -U, --rfc3339-to-unix <rfc3339-to-unix> parse rfc3339 timestamp and display it as a unix timestamp
  32. -R, --unix-to-rfc3339 <unix-to-rfc3339> convert integer unix timestamp (nanoseconds precision) to datetime in
  33. rfc3339 format. combine with --seconds or --millis to parse a seconds
  34. timestamp with alternate precison
  35. ```