BloombergLP::bdlt::LocalTimeOffset::localTimeOffsetDefault

Provide the default local-time-offset callback implementation.

Synopsis

Declared in <bdlt_localtimeoffset.h>

static
bsls::TimeInterval
localTimeOffsetDefault(Datetime const& utcDatetime);

Description

Return a bsls::TimeInterval value representing the difference between local time and UTC time at the specified utcDatetime. Note that the local time zone is determined by the TZ environment variable in the same manner as the localtime POSIX function.

Return Value

the difference between local time and UTC at utcDatetime

Parameters

NameDescription
utcDatetimeUTC date and time at which to compute the offset