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

Name

Description

timezone

time zone identifier to configure

utcDatetime

UTC datetime for the local time period

Created with MrDocs