BloombergLP::bdlt::LocalTimeOffset

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

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

Static Member Functions

NameDescription
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.