2
* ====================================================================
3
* Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved.
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library (in the file LGPL.txt); if not,
17
* write to the Free Software Foundation, Inc., 51 Franklin St,
18
* Fifth Floor, Boston, MA 02110-1301 USA
20
* This software consists of voluntary contributions made by many
21
* individuals. For exact contribution history, see the revision
22
* history and logs, available at http://rapidsvn.tigris.org/.
23
* ====================================================================
26
#ifndef _SVNCPP_DATETIME_HPP_
27
#define _SVNCPP_DATETIME_HPP_
29
#include "svnqt/svnqt_defines.hpp"
31
#include <qdatetime.h>
34
#include "svn_types.h"
40
* Class that encapsulates apr_time_t.
44
class SVNQT_EXPORT DateTime
59
* @param time number of microseconds since 00:00:00 january 1, 1970 UTC
61
DateTime (const apr_time_t time);
66
* @param dt QDateTime class
68
DateTime(const QDateTime&dt);
73
* @param dateTime Source
75
DateTime (const DateTime & dateTime);
78
* @param dateTime Source
81
operator =(const DateTime & dateTime);
84
* @param dateTime Comparator
87
operator ==(const DateTime & dateTime);
89
* @param dateTime Comparator
92
operator !=(const DateTime & dateTime);
95
operator<(const DateTime&dateTime)const;
97
operator>(const DateTime&dateTime)const;
99
operator!=(const DateTime&dateTime)const;
101
operator==(const DateTime&dateTime)const;
105
* @return Is a valid (non-zero) date
111
* @return APR apr_time_t
114
GetAPRTimeT () const;
117
* @return QDateTime object
119
operator QDateTime()const;
122
* @param format format string
123
* @return formatted string
124
* @see QDateTime::toString
126
QString toString(const QString&format)const;
129
* Set from date string of the form below, using apr_date_parse_rfc
132
* Sun, 06 Nov 1994 08:49:37 GMT
135
* @see apr_date_parse_rfc
136
* @return Successfully parsed
139
SetRFC822Date (const char* date);
144
/* -----------------------------------------------------------------
146
* eval: (load-file "../../rapidsvn-dev.el")