BloombergLP::bdlt::LocalTimeOffset::localTimeOffset

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

Synopsis

Declared in <bdlt_localtimeoffset.h>

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

Description

Return a bsls::TimeInterval value representing the difference between local time and UTC time at the specified utcDatetime. This method uses the currently installed local-time-offset callback mechanism.

Return Value

the difference between local time and UTC at utcDatetime

Parameters

NameDescription
utcDatetimeUTC date and time at which to compute the offset