BloombergLP::baltzo::ZoneinfoTransition

This class is an unconstrained in-core value-semantic class that characterizes a transition when the local time value of a time-zone changes. The salient attributes of this type are the utcTime (representing seconds from UTC), and descriptor representing the local time value after the transition.

Synopsis

Declared in <baltzo_zoneinfo.h>

class ZoneinfoTransition;

Member Functions

NameDescription
~ZoneinfoTransition [destructor]Destroy this object.
descriptor Return a reference providing non-modifiable access to the descriptor attribute of this object.
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.
utcTime Return the value of the utcTime attribute of this object.
operator BloombergLP::bslmf::NestedTraitDeclaration<ZoneinfoTransition, IsBitwiseMoveable> Nested trait declaration for bslmf::IsBitwiseMoveable.

Friends

NameDescription
BloombergLP::baltzo::ZoneinfoThis class is a value-semantic type holding a structured representation of the information contained in an Zoneinfo (or "Olson") time zone database for a single locale (e.g., "America/New_York"). The salient attributes of this type are the string identifier and the ordered sequence of ZoneinfoTransition objects.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. Two ZoneinfoTransition objects do not have the same value if the corresponding value of their utcTime is not the same or if they do not refer to the same descriptor address.
operator<Return true if the value of the specified lhs is less than (ordered before) the value of the specified rhs. Note that the value of lhs is less than the value of rhs if the value of the utcTime attribute of lhs is less than the value of the utcTime attribute of rhs.
operator==Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two ZoneinfoTransition objects have the same value if the corresponding value of their utcTime attribute is the same and both refer to the same descriptor address.