konsolekalendar

konsolekalendarepoch.h
Go to the documentation of this file.
1/*******************************************************************************
2 * konsolekalendarepoch.h *
3 * *
4 * KonsoleKalendar is a command line interface to KDE calendars *
5 * Copyright (C) 2002-2004 Tuukka Pasanen <illuusio@mailcity.com> *
6 * Copyright (C) 2003-2005 Allen Winter <winter@kde.org> *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the Free Software *
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 * *
22 * As a special exception, permission is given to link this program *
23 * with any edition of TQt, and distribute the resulting executable, *
24 * without including the source code for TQt in the source distribution. *
25 * *
26 ******************************************************************************/
27
28#ifndef _KONSOLEKALENDAREPOCH_H_
29#define _KONSOLEKALENDAREPOCH_H_
30
31#include <tqdatetime.h>
32
38namespace KCal
39{
45 {
46 public:
55
60 static TQDateTime epoch2TQDateTime( uint epoch );
61
66 static uint TQDateTime2epoch( TQDateTime dt );
67
68 };
69
70}
71
72#endif
Class for timestamps expressed as epochs.
static uint TQDateTime2epoch(TQDateTime dt)
Converts QT DateTime to epoch format.
static TQDateTime epoch2TQDateTime(uint epoch)
Converts epoch time to TQDateTime format.