use-timezone
Small time zone and fixed offset primitives for RustUse.
Example
use ;
let zone = parse_time_zone.unwrap;
let offset = new.unwrap;
assert!;
assert_eq!;
assert_eq!;
Scope
- Represent an IANA-shaped time zone identifier or a fixed UTC/GMT offset.
- Reuse
use-time-zone-idfor IANA-shaped identifier syntax. - Parse fixed offsets such as
Z,UTC,+05:30,-0800, andGMT-08:00. - Keep fixed offsets within the civil
-14:00..=+14:00range.
Non-goals
- Time arithmetic.
- Daylight-saving calculations.
- Date/time conversion.
- Local system time zone discovery.
- Bundled tzdb data.
- Replacement for
time,chrono, ortz-rs.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license