absl::Hours

Hours overloads

Synopses

Declared in <absl/time/time.h>

Constructs a Duration from a floating-point number of hours.

template<
    typename T,
    /* implementation-defined */ = 0>
Duration
Hours(T n);
» more...

Constructs a Duration from an integral number of hours.

template<
    typename T,
    /* implementation-defined */ = 0>
constexpr
Duration
Hours(T n);
» more...

Return Value

A duration of n hours.

Parameters

NameDescription
nThe number of hours.