Return the local time offset from UTC for utcDatetime.

Synopsis

Declared in <baltzo_localtimeoffsetutil.h>

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

Description

Return the offset of the local time from UTC for the specified utcDatetime. This function is thread‐safe. The behavior is undefined unless the local time zone has been previously established by a call to the configure method. This method is thread‐safe.

Return Value

the local time offset from UTC for utcDatetime

Parameters

Name

Description

utcDatetime

UTC datetime for which to compute the offset

Created with MrDocs