std::chrono::file_clock::to_utc, std::chrono::file_clock::from_utc
From cppreference.com
 
 
 < cpp | chrono | file clock 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Date and time library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
(C++11)
(C++20)
  (C++20)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++20)
(C++11)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
  (C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)(C++20)(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
std::chrono::file_clock 
 
 
 
 
 Member functions
(optional*)
file_clock::to_utcfile_clock::from_utc
(optional*)
 Time point I/O
template< class Duration >
 (1) 
 (since C++20) static std::chrono::utc_time </* see below */>
(optional*)
template< class Duration >
 (2) 
 (since C++20) static std::chrono::file_time </* see below */>
(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().
Contents
[edit] 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.[edit] Notes
User code should usually use std::chrono::clock_cast , which provides a generic interface to convert time points between clocks, rather than call these functions directly.
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example