• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • TimeZone
Public Member Functions | List of all members
KABC::TimeZone Class Reference

#include <timezone.h>

Public Member Functions

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

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() [1/3]

TimeZone::TimeZone ( )

Construct invalid time zone.

Definition at line 47 of file timezone.cpp.

◆ TimeZone() [2/3]

TimeZone::TimeZone ( int offset)

Construct time zone.

Parameters
offsetOffset in minutes relative to UTC.

Definition at line 52 of file timezone.cpp.

◆ TimeZone() [3/3]

TimeZone::TimeZone ( const TimeZone & other)

Copy constructor.

Definition at line 57 of file timezone.cpp.

◆ ~TimeZone()

TimeZone::~TimeZone ( )

Destroys the time zone.

Definition at line 62 of file timezone.cpp.

Member Function Documentation

◆ isValid()

bool TimeZone::isValid ( ) const

Return, if this time zone object is valid.

Definition at line 77 of file timezone.cpp.

◆ offset()

int TimeZone::offset ( ) const

Return offset in minutes relative to UTC.

Definition at line 72 of file timezone.cpp.

◆ operator!=()

bool TimeZone::operator!= ( const TimeZone & t) const

Definition at line 99 of file timezone.cpp.

◆ operator=()

TimeZone & TimeZone::operator= ( const TimeZone & other)

Definition at line 104 of file timezone.cpp.

◆ operator==()

bool TimeZone::operator== ( const TimeZone & t) const

Definition at line 82 of file timezone.cpp.

◆ setOffset()

void TimeZone::setOffset ( int offset)

Set time zone offset relative to UTC.

Parameters
offsetOffset in minutes.

Definition at line 66 of file timezone.cpp.

◆ toString()

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:
  • timezone.h
  • timezone.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal