]> git.tdb.fi Git - libs/core.git/blob - source/time/timezone.h
Merge branch 'strings-master'
[libs/core.git] / source / time / timezone.h
1 /* $Id$
2
3 This file is part of libmspcore
4 Copyright © 2008-2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_TIME_TIMEZONE_H_
9 #define MSP_TIME_TIMEZONE_H_
10
11 #include "timedelta.h"
12
13 namespace Msp {
14 namespace Time {
15
16 class TimeZone
17 {
18 private:
19         std::string name;
20         TimeDelta offset;
21
22 public:
23         TimeZone();
24         TimeZone(int);
25         TimeZone(int, const std::string &);
26         
27         const std::string &get_name() const { return name; }
28         const TimeDelta &get_offset() const { return offset; }
29
30         static const TimeZone &utc();
31         static const TimeZone &local();
32 };
33
34 } // namespace Time
35 } // namespace Msp
36
37 #endif