21 #include <tqdatastream.h>
28 mOffset( 0 ), mValid( false )
33 mOffset( offset ), mValid( true )
53 bool TimeZone::operator==(
const TimeZone &t )
const
57 if ( t.mOffset == mOffset )
return true;
61 bool TimeZone::operator!=(
const TimeZone &t )
const
65 if ( t.mOffset != mOffset )
return true;
71 return TQString::number( mOffset );
74 TQDataStream &TDEABC::operator<<( TQDataStream &s,
const TimeZone &zone )
76 return s << zone.mOffset;
79 TQDataStream &TDEABC::operator>>( TQDataStream &s,
TimeZone &zone )
void setOffset(int offset)
Set time zone offset relative to UTC.
int offset() const
Return offset in minutes relative to UTC.
TimeZone()
Construct invalid time zone.
TQString asString() const
Return string representation of time zone offset.
bool isValid() const
Return, if this time zone object is valid.
static data, shared by ALL addressee objects