This value‐semantic class describes a date value in a particular time zone, which is indicated using an offset from UTC (in minutes).

Synopsis

Declared in <bdlt_datetz.h>

class DateTz;

Member Functions

Name

Description

DateTz [constructor]

Constructors

~DateTz [destructor]

Destroy this object.

operator=

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.

bdexStreamIn

Assign to this object the value read from the specified input stream.

bdexStreamOut

Write this object to the specified output stream using BDEX.

gmtStartTime

Return the UTC datetime when this object's local date starts.

localDate

Return the local date represented by this object.

offset

Return the time zone offset of this DateTz object. Note that the offset is in minutes from UTC.

print

Write this object to the specified stream in a human‐readable format.

setDateTz

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

setDateTzIfValid

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

utcStartTime

Return the UTC datetime when this object's local date starts.

validateAndSetDateTz

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

Static Member Functions

Name

Description

isValid

Return whether localDate and offset form a valid DateTz.

maxSupportedBdexVersion

maxSupportedBdexVersion overloads

Non-Member Functions

Name

Description

operator!=

Return whether the specified lhs and rhs do not have the same value.

operator==

Return whether the specified lhs and rhs have the same value.

Created with MrDocs