12774e142SAdrien Destugues /* 299d2aa98SOliver Tappe * Copyright 2010, Haiku, Inc. All rights reserved. 399d2aa98SOliver Tappe * Distributed under the terms of the MIT License. 42774e142SAdrien Destugues */ 599d2aa98SOliver Tappe #ifndef _TIME_ZONE_H 699d2aa98SOliver Tappe #define _TIME_ZONE_H 72774e142SAdrien Destugues 82774e142SAdrien Destugues 999d2aa98SOliver Tappe #include <String.h> 102774e142SAdrien Destugues 112774e142SAdrien Destugues 122774e142SAdrien Destugues class BTimeZone { 132774e142SAdrien Destugues public: 1499d2aa98SOliver Tappe BTimeZone(const char* zoneCode = NULL); 152774e142SAdrien Destugues ~BTimeZone(); 162774e142SAdrien Destugues 1799d2aa98SOliver Tappe const BString& Code() const; 1899d2aa98SOliver Tappe const BString& Name() const; 1999d2aa98SOliver Tappe int OffsetFromGMT() const; 2099d2aa98SOliver Tappe 2199d2aa98SOliver Tappe status_t InitCheck() const; 222774e142SAdrien Destugues 23*38ac8defSOliver Tappe status_t SetTo(const char* zoneCode); 2499d2aa98SOliver Tappe 25*38ac8defSOliver Tappe static const char* kNameOfGmtZone; 26*38ac8defSOliver Tappe 27*38ac8defSOliver Tappe private: 2899d2aa98SOliver Tappe BString fCode; 2999d2aa98SOliver Tappe BString fName; 3099d2aa98SOliver Tappe int fOffsetFromGMT; 3199d2aa98SOliver Tappe 3299d2aa98SOliver Tappe status_t fInitStatus; 332774e142SAdrien Destugues }; 342774e142SAdrien Destugues 352774e142SAdrien Destugues 3699d2aa98SOliver Tappe #endif // _TIME_ZONE_H 37