Converts a std::chrono::system_clock::time_point to an absl::Time.
Synopsis
Declared in <absl/time/time.h>
Time
FromChrono(std::chrono::system_clock::time_point const& tp);
Description
Example:
auto tp = std::chrono::system_clock::from_time_t(123); absl::Time t = absl::FromChrono(tp); // t == absl::FromTimeT(123)
Return Value
The equivalent time.
Parameters
Name |
Description |
tp |
The time point to convert. |
Created with MrDocs