Example
use *;
// Get current timestamp
let now = now;
// Print it ~ "2023-05-26T13:07:42Z\n"
println!;
// Get a specific timestamp (0 = UNIX epoch)
let ts = timestamp.unwrap;
// Default format (ISO8601)
assert_eq!;
assert_eq!;
// Format constant
assert_eq!;
assert_eq!;
// Create a custom format and use it
let custom_fmt = new.unwrap;
assert_eq!;
// Use a custom format string directly
assert_eq!;
// Get the UNIX timestamp in seconds/nanoseconds by accessing the internal
// `time::OffsetDateTime`
assert_eq!;
assert_eq!;
Changelog
Please find the CHANGELOG.md in the repository.