BloombergLP::bdlt::DateTz::setDateTz

Set this object's local date and time zone offset.

Synopsis

Declared in <bdlt_datetz.h>

void
setDateTz(
    Date const& localDate,
    int offset);

Description

Set the local date and the time zone offset of this object to the specified localDate and offset values respectively. The behavior is undefined unless offset is in the range ( -1440 .. 1440 ). Note that this method provides no validation, and it is the user's responsibility to assure the consistency of the resulting value.

Parameters

NameDescription
localDatelocal date value to set
offsettime zone offset from UTC in minutes