absl::ToInt64Hours

Converts a Duration to an integral count of hours.

Synopsis

Declared in <absl/time/time.h>

constexpr
int64_t
ToInt64Hours(Duration d);

Return Value

The number of whole hours in d.

Parameters

NameDescription
dThe duration to convert.