BloombergLP::bdlt::TimeTz::setTimeTz

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

Synopsis

Declared in <bdlt_timetz.h>

void
setTimeTz(
    Time const& localTime,
    int offset);

Description

Set the local time and time zone offset attributes of this object to the specified localTime 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
localTimelocal time value to set
offsettime zone offset from UTC in minutes