🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_subscriber::fmt

Module time

Source
Available on crate features fmt and std only.
Expand description

Formatters for event timestamps.

Structs§

ChronoLocalchrono
Formats local times and UTC times with FormatTime implementations that use the chrono crate.
ChronoUtcchrono
Formats the current UTC time using a formatter from the chrono crate.
LocalTimeunsound_local_offset and local-time
Formats the current local time using a formatter from the time crate.
SystemTime
Retrieve and print the current wall-clock time.
Uptime
Retrieve and print the relative elapsed wall-clock time since an epoch.
UtcTimetime
Formats the current UTC time using a formatter from the time crate.

Traits§

FormatTime
A type that can measure and format the current time.

Functions§

time
Returns a new SystemTime timestamp provider.
uptime
Returns a new Uptime timestamp provider.