Set this object's date and offset if they form a valid DateTz.

Synopsis

Declared in <bdlt_datetz.h>

int
setDateTzIfValid(
    Date const& localDate,
    int offset);

Description

Set the local date and time zone offset of this object to the specified localDate and offset values respectively if localDate and offset represent a valid DateTz value. Return 0 on success, and a non‐zero value with no effect on this DateTz object otherwise.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

localDate

local date value to set

offset

time zone offset from UTC in minutes

Created with MrDocs