X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimezone.h;fp=source%2Ftime%2Ftimezone.h;h=699801d47c6b2ead5fd8709f6f7bdc90bc39af72;hb=3fd9d04e84cdd72aabe8f9878f9e8ff006275bb6;hp=0000000000000000000000000000000000000000;hpb=cd89068b8ebafdc0f888c1aa21498bb93b55d814;p=libs%2Fcore.git diff --git a/source/time/timezone.h b/source/time/timezone.h new file mode 100644 index 0000000..699801d --- /dev/null +++ b/source/time/timezone.h @@ -0,0 +1,36 @@ +/* $Id$ + +This file is part of libmspcore +Copyright © 2008 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_TIME_TIMEZONE_H_ +#define MSP_TIME_TIMEZONE_H_ + +#include "timedelta.h" + +namespace Msp { +namespace Time { + +class TimeZone +{ +private: + std::string name; + TimeDelta offset; + +public: + TimeZone(); + TimeZone(int); + + const std::string &get_name() const { return name; } + const TimeDelta &get_offset() const { return offset; } + + static const TimeZone &utc(); + static const TimeZone &local(); +}; + +} // namespace Time +} // namespace Msp + +#endif