logo

Module time::macros

source · []
This is supported on crate feature macros only.
Expand description

Macros to construct statically known values.

Macros

Construct a Date with a statically known value.

Construct a PrimitiveDateTime or OffsetDateTime with a statically known value.

format_descriptionformatting or parsing

Equivalent of performing format_description::parse() at compile time.

Construct a UtcOffset with a statically known value.

Construct a Time with a statically known value.