Provide a namespace for local‐time‐offset procedures.

Synopsis

Declared in <bdlt_localtimeoffset.h>

struct LocalTimeOffset;

Description

This struct provides a namespace for local‐time‐offset procedures including a configurable global callback mechanism. The use of these procedures is thread‐safe (see Thread Safety).

Type Aliases

Name

Description

LocalTimeOffsetCallback

Callback function type that returns the local time offset from UTC.

Static Member Functions

Name

Description

localTimeOffset

Return the local time offset from UTC at the specified date and time.

localTimeOffsetCallback

Return the currently installed LocalTimeOffsetCallback function.

localTimeOffsetDefault

Provide the default local‐time‐offset callback implementation.

setLocalTimeOffsetCallback

Set the callback used to retrieve the local time offset.

Created with MrDocs