Registry / utility / time-macros

time-macros

JSON →
library0.2.27rscratesunverified

Procedural macros for the time crate. This crate is an implementation detail and should not be relied upon directly.

# Cargo.toml [dependencies] time-macros = "0.2.27"
INSTALL
IMPORT
SIG · TIME-MACROS
T
time-macros
utilityrustv0.2.27
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.

datetime
use time_macros::datetime;

Create a DateTime value using the datetime! macro.

use time_macros::datetime; fn main() { let dt = datetime!(2024-01-01 0:00:00 UTC); println!("{:?}", dt); }
Debug
Known issues
gotchaThis crate is an implementation detail of the `time` crate and should not be used directly.
fix
Use the `time` crate's re-exported macros instead.
affects: >=0.2.0
Upgrade
Version history
0.2.27latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
time-macros — cargo add time-macros · libregistry