Manipulator for inserting time points into std::ostreams as local time.
More...
#include <xentara/utils/ios/toLocalTime.hpp>
Manipulator for inserting time points into std::ostreams as local time.
◆ Format
Time formats.
| Enumerator |
|---|
| Full | Always output the full time with nanosecond precision.
|
| Compact | Only show as much of seconds and fractions of a second as necessary.
|
| Iso | Use ISO 8601/RFC 3339 format.
|
◆ ToLocalTime()
| xentara::utils::ios::ToLocalTime::ToLocalTime |
( |
std::chrono::system_clock::time_point |
time, |
|
|
Format |
format = Format::Full |
|
) |
| |
Constructor.
- Parameters
-
| time | The time to insert |
| format | The format to use |