]> git.tdb.fi Git - libs/core.git/blob - source/time/timezone.h
28feb16bf13ff958af044f4e2e0da1319688622c
[libs/core.git] / source / time / timezone.h
1 #ifndef MSP_TIME_TIMEZONE_H_
2 #define MSP_TIME_TIMEZONE_H_
3
4 #include "timedelta.h"
5
6 namespace Msp {
7 namespace Time {
8
9 class TimeZone
10 {
11 private:
12         std::string name;
13         TimeDelta offset;
14
15 public:
16         TimeZone();
17         TimeZone(int);
18         TimeZone(int, const std::string &);
19         
20         const std::string &get_name() const { return name; }
21         const TimeDelta &get_offset() const { return offset; }
22
23         static const TimeZone &utc();
24         static const TimeZone &local();
25 };
26
27 } // namespace Time
28 } // namespace Msp
29
30 #endif