Registry / utility / chrono

chrono

JSON →
library0.4.45rscratesunverified

Date and time library for Rust.

# Cargo.toml [dependencies] chrono = "0.4.45"
INSTALL
IMPORT
SIG · CHRONO
C
chrono
utilityrustv0.4.45
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.

Utc
use chrono::Utc;

Gets the current UTC time and prints it.

use chrono::Utc; fn main() { let now = Utc::now(); println!("Current time: {}", now); }
Debug
Known issues
gotchaChrono 0.4.35+ changed the default `clock` feature; `Utc::now()` requires the `clock` feature (enabled by default).
fix
Ensure `clock` feature is enabled if you disable default features.
affects: >=0.4.35
Upgrade
Version history
0.4.45latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
chrono — cargo add chrono · libregistry