Registry / utility / chrono-tz

chrono-tz

JSON →
library0.10.4rscratesunverified

TimeZone implementations for chrono from the IANA database

# Cargo.toml [dependencies] chrono-tz = "0.10.4"
INSTALL
IMPORT
SIG · CHRONO-TZ
C
chrono-tz
utilityrustv0.10.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tz
use chrono_tz::Tz;

Parse a timezone string and create a datetime in that timezone.

use chrono_tz::Tz; use chrono::TimeZone; let tz: Tz = "America/New_York".parse().unwrap(); let dt = tz.ymd(2023, 1, 1).and_hms(0, 0, 0); println!("{}", dt);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
chrono-tz — cargo add chrono-tz · libregistry