Available on crate features
fmt and std only.Expand description
Formatters for event timestamps.
Structs§
- Chrono
Local chrono - Formats local times and UTC times with
FormatTimeimplementations that use thechronocrate. - Chrono
Utc chrono - Formats the current UTC time using a formatter from the
chronocrate. - Local
Time unsound_local_offsetandlocal-time - Formats the current local time using a formatter from the
timecrate. - Offset
Time time - Formats the current time using a fixed offset and a formatter from the
timecrate. - Rfc3339
- RFC3339 formatter with configurable fractional digits and optional ‘Z’.
- System
Clock - System wall-clock now.
A
Clockthat returnsstd::time::SystemTime::now(). - System
Time - Retrieve and print the current wall-clock time.
- Timer
- A combinator that implements
FormatTimeasF(C::now()). Composes aClockand aTimestampFormatterto implementFormatTime. - Unix
Micros - Microseconds since UNIX epoch (UTC), using floor semantics for pre-epoch values.
- Unix
Millis - Milliseconds since UNIX epoch (UTC), using floor semantics for pre-epoch values.
- Unix
Nanos - Nanoseconds since UNIX epoch (UTC), using floor semantics for pre-epoch values.
- Unix
Seconds - Seconds since UNIX epoch (UTC), using floor semantics for pre-epoch values.
- Uptime
- Retrieve and print the relative elapsed wall-clock time since an epoch.
- UtcTime
time - Formats the current UTC time using a formatter from the
timecrate.
Traits§
- Clock
- Captures the notion of “now” and returns a snapshot value. Captures the notion of time (“now”) and returns a snapshot value.
- Format
Time - A type that can measure and format the current time.
- Timestamp
Formatter - Formats a captured snapshot into the Writer without allocating. Formats a captured time snapshot into the writer with no allocations.