YAPOG  0.0.1
Yet Another Pokemon Online Game
DateTime.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
6  : time_ ()
7  {
8  }
9 
11  : time_ (time)
12  {
13  }
14 
16  : time_ (copy.time_)
17  {
18  }
19 
21  {
22  if (this == &copy)
23  return *this;
24 
25  time_ = copy.time_;
26 
27  return *this;
28  }
29 
31  {
32  return boost::posix_time::to_simple_string (time_);
33  }
34 } // namespace yap