fipa_acl  1.4
date_time.h
Go to the documentation of this file.
1 #ifndef __FIPAACL_MESSAGEPARSER_DATETIME_H_
2 #define __FIPAACL_MESSAGEPARSER_DATETIME_H_
3 
4 #include <stdio.h>
5 #include <string>
6 #include <ctime>
7 #include <base/Time.hpp>
8 
9 namespace fipa { namespace acl {
10 
11 struct Time : public std::tm
12 {
13  // inheriting from struct tm
14 
15  // Extending milliseconds
16  int tm_msec;
17 };
18 
19 struct DateTime
20 {
21  char relative;
23  char timezone;
24 
25  static const std::string defaultFormat;
26 
27  DateTime() : relative(0), timezone(0) {}
28 
32  std::string toString() const;
33 
39  base::Time toTime() const;
40 };
41 
42 
43 
44 
45 }} // namespace fipa::acl
46 #endif
47 
std::string toString() const
Definition: date_time.cpp:9
base::Time toTime() const
Definition: date_time.cpp:28
static const std::string defaultFormat
Definition: date_time.h:25