absl::FromUnixNanos

Creates an absl::Time from a count of nanoseconds since the Unix epoch.

Synopsis

Declared in <absl/time/time.h>

constexpr
Time
FromUnixNanos(int64_t ns);

Description

Creates an absl::Time from a variety of other representations. See https://unicode-org.github.io/icu/userguide/datetime/universaltimescale.html

Return Value

The corresponding time.

Parameters

NameDescription
nsThe count of nanoseconds since the Unix epoch.