DatetimeTz [constructor] | Constructors |
~DatetimeTz [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 using the specified version format, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported, this object is unaltered and stream is invalidated, but otherwise unmodified. If version is supported but stream becomes invalid during this operation, this object has an undefined, but valid, state. Note that no version is read from stream. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers. |
bdexStreamOut | Write the value of this object, using the specified version format, to the specified output stream, and return a reference to stream. If stream is initially invalid, this operation has no effect. If version is not supported, stream is invalidated, but otherwise unmodified. Note that version is not written to stream. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers. |
dateTz | Return a DateTz object having the value of the local date and offset represented by this object. |
gmtDatetime | Return a Datetime object having the value of the UTC datetime represented by this object. Note that if 0 != offset(), the returned value is equal to localDatetime() minus offset() minutes, and localDatetime() otherwise. |
localDatetime | Return a Datetime object having the value of the local datetime represented by this object. Note that the Datetime value returned is the current value stored in this object and may be different from the local datetime of the system. |
offset | Return the time zone offset of this DatetimeTz object. Note that the offset is in minutes from UTC. |
print | Write the value of this object to the specified output stream in a human-readable format, and return a reference to stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that the format is not fully specified, and can change without notice. |
setDatetimeTz | Set the local datetime and the time zone offset of this object to the specified localDatetime and offset values respectively. The behavior is undefined unless all of the specified values are within their valid ranges (see isValid). Note that this method provides no validation, and it is the user's responsibility to assure the consistency of the resulting value. |
setDatetimeTzIfValid | If the specified localDatetime and offset represent a valid DatetimeTz value (see isValid), set the local datetime and the time zone offset of this object to the localDatetime and offset values respectively and return 0, leave this object unmodified and return a non-zero value otherwise. |
timeTz | Return a TimeTz object having the value of the local time and offset represented by this object. |
utcDatetime | Return a Datetime object having the value of the UTC datetime represented by this object. Note that if 0 != offset(), the returned value is equal to localDatetime() minus offset() minutes, and localDatetime() otherwise. |
validateAndSetDatetimeTz | If the specified localDatetime and offset represent a valid DatetimeTz value (see isValid), set the local datetime and the time zone offset of this object to the localDatetime and offset values respectively and return 0, leave this object unmodified and return a non-zero value otherwise. |