Set this object's time and offset if they form a valid TimeTz.

Synopsis

Declared in <bdlt_timetz.h>

int
validateAndSetTimeTz(
    Time const& localTime,
    int offset);

Description

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

DEPRECATED: replaced by setTimeTzIfValid.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

localTime

local time value to set

offset

time zone offset from UTC in minutes

Created with MrDocs