Helper for TimeZone::At(CivilSecond) that provides "order‐preserving semantics." If the civil time maps to a unique time, that time is returned. If the civil time is repeated in the given time zone, the time using the pre‐transition offset is returned. Otherwise, the civil time is skipped in the given time zone, and the transition time is returned. This means that for any two civil times, ct1 and ct2, (ct1 < ct2) => (FromCivil(ct1) <= FromCivil(ct2)), the equal case being when two non‐existent civil times map to the same transition time.
Synopsis
Declared in <absl/time/time.h>
Time
FromCivil(
CivilSecond ct,
TimeZone tz);
Description
Note: Accepts civil times of any alignment.
Return Value
The absolute time corresponding to ct in tz.
Parameters
Name |
Description |
ct |
The civil time to convert. |
tz |
The time zone to convert in. |
Created with MrDocs