Constructors

Synopses

Declared in <bdlt_timetz.h>

Create a TimeTz object having the (default) attribute values.

TimeTz();

Construct a TimeTz object having the same value as the specified original TimeTz object.

TimeTz(TimeTz const& original);

Create a TimeTz object whose local time and offset attributes have the specified localTime and offset values respectively. The behavior is undefined unless offset is in the range ( ‐1440 .. 1440 ), and offset is 0 if localTime has the value 24:00:00.000. Note that this method provides no validation, and it is the user's responsibility to ensure that offset represents a valid time zone and that localTime represents a valid time in that time zone.

TimeTz(
    Time const& localTime,
    int offset);

Created with MrDocs