SvnCpp
datetime.hpp
Go to the documentation of this file.
1/*
2 * ====================================================================
3 * Copyright (c) 2002-2018 The RapidSVN Group. All rights reserved.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
9 *
10 * This program 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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program (in the file LGPL.txt).
17 * If not, see <http://www.gnu.org/licenses/>.
18 *
19 * This software consists of voluntary contributions made by many
20 * individuals. For exact contribution history, see the revision
21 * history and logs, available at http://rapidsvn.tigris.org/.
22 * ====================================================================
23 */
24
25#ifndef _SVNCPP_DATETIME_HPP_
26#define _SVNCPP_DATETIME_HPP_
27
28// subversion api
29#include "svn_types.h"
30
31
32namespace svn
33{
40 {
41 private:
42 apr_time_t m_time;
43
44 public:
45
50
56 DateTime(const apr_time_t time);
57
63 DateTime(const DateTime & dateTime);
64
68 const DateTime &
69 operator =(const DateTime & dateTime);
70
74 bool
75 operator ==(const DateTime & dateTime);
76
80 bool
81 operator !=(const DateTime & dateTime);
82
86 bool
87 IsValid() const;
88
92 apr_time_t
93 GetAPRTimeT() const;
94
105 bool
106 SetRFC822Date(const char* date);
107 };
108}
109
110#endif
111/* -----------------------------------------------------------------
112 * local variables:
113 * eval: (load-file "../../rapidsvn-dev.el")
114 * end:
115 */
Definition datetime.hpp:40
apr_time_t GetAPRTimeT() const
DateTime(const apr_time_t time)
const DateTime & operator=(const DateTime &dateTime)
bool operator!=(const DateTime &dateTime)
bool IsValid() const
DateTime(const DateTime &dateTime)
bool SetRFC822Date(const char *date)
bool operator==(const DateTime &dateTime)
Definition annotate_line.hpp:32