Converts an absl::Time to a count of nanoseconds since the Unix epoch.
Synopsis
Declared in <absl/time/time.h>
int64_t
ToUnixNanos(Time t);
Description
Converts an absl::Time to a variety of other representations. See https://unicode‐org.github.io/icu/userguide/datetime/universaltimescale.html
Note that these operations round down toward negative infinity where necessary to adjust to the resolution of the result type. Beware of possible time_t over/underflow in ToTime{T,val,spec}() on 32‐bit platforms.
Return Value
The count of nanoseconds since the Unix epoch.
Parameters
Name |
Description |
t |
The time to convert. |
Created with MrDocs