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 &KABC::operator<<( TQDataStream &s,
const TimeZone &zone )
76 return s << zone.mOffset;
79 TQDataStream &KABC::operator>>( TQDataStream &s,
TimeZone &zone )
void setOffset(int offset)
Set time zone offset relative to UTC.
TQString asString() const
Return string representation of time zone offset.
int offset() const
Return offset in minutes relative to UTC.
TimeZone()
Construct invalid time zone.
static data, shared by ALL addressee objects
bool isValid() const
Return, if this time zone object is valid.