haiku/headers/os/locale/TimeZone.h
Oliver Tappe 99d2aa985b Improved the Time preflet (still not working properly, though)
* basically rewrote TimeZone to sport a nicer to use interface
* adjusted all users of TimeZone accordingly
* changed TZDisplay to show the Date next to the label, in
  order to avoid that long timezone names draw all over it
* the timezone listview is now properly sorted according
  to the current language (using BCollator)
* fixed a couple of bugs (overflows, etc.) that caused
  incorrect GMT offsets to be used during computations


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-29 20:10:26 +00:00

35 lines
583 B
C++

/*
* Copyright 2010, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _TIME_ZONE_H
#define _TIME_ZONE_H
#include <String.h>
class BTimeZone {
public:
BTimeZone(const char* zoneCode = NULL);
~BTimeZone();
const BString& Code() const;
const BString& Name() const;
int OffsetFromGMT() const;
status_t InitCheck() const;
private:
void _Init(const char* zoneCode);
BString fCode;
BString fName;
int fOffsetFromGMT;
status_t fInitStatus;
};
#endif // _TIME_ZONE_H