mirror of
https://review.haiku-os.org/haiku
synced 2025-02-02 19:57:42 +01:00
99d2aa985b
* 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
35 lines
583 B
C++
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
|