Set the local datetime and time zone offset of this object.

Synopsis

Declared in <bdlt_datetimetz.h>

void
setDatetimeTz(
    Datetime const& localDatetime,
    int offset);

Description

Set the local datetime and the time zone offset of this object to the specified localDatetime and offset values respectively. The behavior is undefined unless all of the specified values are within their valid ranges (see isValid). Note that this method provides no validation, and it is the user's responsibility to assure the consistency of the resulting value.

Parameters

Name

Description

localDatetime

local datetime value

offset

time zone offset from UTC in minutes

Created with MrDocs