AppChat
0.5.0
TCP client-server caht application with boost::asio library.
Main Page
Related Pages
Classes
Files
File List
src
protocol
datetime.h
1
#ifndef DATETIME_H
2
#define DATETIME_H
3
4
#include <boost/date_time/posix_time/posix_time.hpp>
5
6
struct
DateTime
7
{
8
DateTime
();
9
DateTime
(
const
boost::posix_time::ptime& ptime);
10
11
uint8_t hours;
12
uint8_t minutes;
13
uint8_t seconds;
14
15
uint8_t day;
16
uint8_t month;
17
uint8_t year;
// since 2000
18
19
std::string to_simple_date()
const
;
20
21
std::string to_simple_time()
const
;
22
23
static
DateTime
from_universal_to_local(
DateTime
dt);
24
25
friend
bool
operator== (
DateTime
lhs,
DateTime
rhs);
26
friend
bool
operator< (
DateTime
lhs,
DateTime
rhs);
27
};
28
29
30
#endif // DATETIME_H
DateTime
Definition:
datetime.h:6
Generated by
1.8.11