std::chrono::gps_clock::from_utc
From cppreference.com
 
 
 
 
 
 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::gps_clock 
 
 Member functions
gps_clock::from_utc
 Time point I/O
template< class Duration >
 
 (since C++20) 
static std::chrono::gps_time <std::common_type_t <Duration, std::chrono::seconds >>
Converts the utc_time t to a gps_time representing the same point in time.
[edit] Return value
A std::chrono::gps_time representing the same point in time as t, computed as if by constructing a value of the return type from t.time_since_epoch() and subtracting 315964809s (315964809 is the number of seconds between the epochs of the two clocks: 1980年01月06日 00:00:00 UTC for gps_clock and 1970年01月01日 00:00:00 UTC for utc_clock).
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example