std::chrono::file_clock::to_utc, std::chrono::file_clock::from_utc
Time point | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Duration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Clocks | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Time of day | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Calendar | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Time zone | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chrono I/O | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++20)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C-style date and time |
Member functions | ||||
(optional*)
|
||||
file_clock::to_utcfile_clock::from_utc
(optional*)
|
||||
Time point I/O | ||||
template
<
class Duration >
static
std::chrono::utc_time
<
/* see below */
>
|
(1) | (since C++20) (optional*) |
template
<
class Duration >
static
std::chrono::file_time
<
/* see below */
>
|
(2) | (since C++20) (optional*) |
file_time
t to a utc_time
representing the same point in time.utc_time
t to a file_time
representing the same point in time.The duration of the return type is computed from Duration
in an unspecified manner.
These function templates are optional: an implementation may choose to instead provide to_sys()
and from_sys()
Return value
utc_time
representing the same point in time as the argument.file_time
representing the same point in time as the argument.Notes
User code should usually use std::chrono::clock_cast
Example
This section is incomplete Reason: no example |
See also
[static] (optional)
|
converts between file_time and sys_time (public static member function) |
(C++20)
|
convert time points of one clock to another (function template) |