Namespaces
Variants
Views
Actions

std::chrono::file_clock::to_utc, std::chrono::file_clock::from_utc

From cppreference.com
< cpp‎ | chrono‎ | file clock
Revision as of 04:18, 24 March 2018 by T. Canens (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
std::chrono::file_clock
Member functions


file_clock::to_utcfile_clock::from_utc
(optional*)
Time point I/O
 
template <class Duration>

static std::chrono::utc_time</*see below*/>

    to_utc(const std::chrono::file_time<Duration>& t);
(1) (since C++20)
(optional)
template <class Duration>

static std::chrono::file_time</*see below*/>

    from_utc(const std::chrono::utc_time<Duration>& t);
(2) (since C++20)
(optional)
1) Converts the file_time t to a utc_time representing the same point in time.
2) Converts the 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

1) A utc_time representing the same point in time as the argument.
2) A file_time representing the same point in time as the argument.

See also

[static] (optional)
converts between file_time and sys_time
(public static member function) [edit]