BloombergLP::baltzo::LocalTimeOffsetUtil::configure

Configure local time period for timezone at utcDatetime.

Synopsis

Declared in <baltzo_localtimeoffsetutil.h>

static
int
configure(
    char const* timezone,
    bdlt::Datetime const& utcDatetime);

Description

Set the local time period information used by the localTimeOffset method to that for the specified timezone at the specified utcDatetime. Return 0 on success, and a non-zero value otherwise. This method is not thread-safe.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
timezonetime zone identifier to configure
utcDatetimeUTC datetime for the local time period