Namespace for a bdlt::LocalTimeOffset callback and timezone utilities.

Synopsis

Declared in <baltzo_localtimeoffsetutil.h>

struct LocalTimeOffsetUtil;

Description

This struct provides a namespace for a bdlt::LocalTimeOffset local time offset callback, and functions that manage the timezone information reported by that callback. All public methods are thread‐safe.

Static Member Functions

Name

Description

configure

configure overloads

loadLocalTimeOffset

Load the local time offset from UTC for utcDatetime into result.

loadLocalTimePeriod

Load the current local time period into localTimePeriod.

loadTimezone

Load the time zone identifier into timezone.

localTimeOffset

Return the local time offset from UTC for utcDatetime.

setLoadLocalTimeOffsetCallback

Set localTimeOffset as the local time offset callback of bdlt::CurrentTime. Return the previously installed callback. This method is not thread‐safe.

updateCount

Return the number of successful updates of the local time period information since the start of the process.

Created with MrDocs