class CivilTimeManager

Defined at line 19 of file ../../third_party/cobalt/src/local_aggregation/civil_time_manager.h

A CivilTimeManager converts a specific initial time point to `TimeInfo`s for given time

zones. It also provides and caches the `TimeInfo`s corresponding to time points at hourly

increments before the initial time.

Public Methods

void CivilTimeManager (std::chrono::system_clock::time_point initial_time, const util::CivilTimeConverterInterface & civil_time_converter)

Defined at line 21 of file ../../third_party/cobalt/src/local_aggregation/civil_time_manager.h

util::TimeInfo GetInitialUtc ()

Returns the `TimeInfo` at the initial time with respect to UTC.

Defined at line 28 of file ../../third_party/cobalt/src/local_aggregation/civil_time_manager.h

lib::statusor::StatusOr<util::TimeInfo> GetTimeInfo (int past_hours, const MetricDefinition & metric)

Returns the `TimeInfo` at the initial time minus `past_hours`, with respect to the time zone

policy of `metric`.

Defined at line 32 of file ../../third_party/cobalt/src/local_aggregation/civil_time_manager.h