Convenience method returning the local time zone, or UTC if there is no configured local zone. Warning: Be wary of using LocalTimeZone(), and particularly so in a server process, as the zone configured for the local machine should be irrelevant. Prefer an explicit zone name.

Synopsis

Declared in <absl/time/time.h>

TimeZone
LocalTimeZone();

Return Value

The local time zone, or UTC if none is configured.

Created with MrDocs