KABC::TimeZone Class Reference

Time zone information. More...

#include <timezone.h>

List of all members.

Public Member Functions

 TimeZone (const TimeZone &other)
 TimeZone (int offset)
 TimeZone ()
 ~TimeZone ()
bool isValid () const
int offset () const
bool operator!= (const TimeZone &) const
TimeZoneoperator= (const TimeZone &other)
bool operator== (const TimeZone &) const
void setOffset (int offset)
QString toString () const

Friends

QDataStream & operator<< (QDataStream &, const TimeZone &)
QDataStream & operator>> (QDataStream &, TimeZone &)

Detailed Description

Time zone information.

This class stores information about a time zone.

Definition at line 35 of file timezone.h.


Constructor & Destructor Documentation

TimeZone::TimeZone (  ) 

Construct invalid time zone.

Definition at line 47 of file timezone.cpp.

TimeZone::TimeZone ( int  offset  ) 

Construct time zone.

Parameters:
offset Offset in minutes relative to UTC.

Definition at line 52 of file timezone.cpp.

TimeZone::TimeZone ( const TimeZone other  ) 

Copy constructor.

Definition at line 57 of file timezone.cpp.

TimeZone::~TimeZone (  ) 

Destroys the time zone.

Definition at line 62 of file timezone.cpp.


Member Function Documentation

bool TimeZone::isValid (  )  const

Return, if this time zone object is valid.

Definition at line 77 of file timezone.cpp.

int TimeZone::offset (  )  const

Return offset in minutes relative to UTC.

Definition at line 72 of file timezone.cpp.

void TimeZone::setOffset ( int  offset  ) 

Set time zone offset relative to UTC.

Parameters:
offset Offset in minutes.

Definition at line 66 of file timezone.cpp.

QString TimeZone::toString (  )  const

Return string representation of time zone offset.

Definition at line 113 of file timezone.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys