X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Ftimezone.h;h=3fbeb543a243e1a7abd8922e07617ea9cda83992;hp=699801d47c6b2ead5fd8709f6f7bdc90bc39af72;hb=HEAD;hpb=3fd9d04e84cdd72aabe8f9878f9e8ff006275bb6 diff --git a/source/time/timezone.h b/source/time/timezone.h index 699801d..83b4b58 100644 --- a/source/time/timezone.h +++ b/source/time/timezone.h @@ -1,19 +1,13 @@ -/* $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 #include "timedelta.h" namespace Msp { namespace Time { -class TimeZone +class MSPCORE_API TimeZone { private: std::string name; @@ -22,12 +16,15 @@ private: public: TimeZone(); TimeZone(int); + TimeZone(int, const std::string &); const std::string &get_name() const { return name; } const TimeDelta &get_offset() const { return offset; } static const TimeZone &utc(); static const TimeZone &local(); +private: + static TimeZone platform_get_local_timezone(); }; } // namespace Time