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

Name

Description

utcDatetime

UTC date and time at which to compute the offset

Created with MrDocs