Public Member Functions
BTimeZone Class Reference

Provides information about time zones. More...

List of all members.

Public Member Functions

 BTimeZone (const char *zoneID=NULL, const BLanguage *language=NULL)
 Construct a timezone from its zoneID and language.
const BStringDaylightSavingName () const
 Returns the name of the daylight savings rules used in this timezone.
const BStringID () const
 Returns the ID of the time zone.
status_t InitCheck () const
 Return false if there was an error creating the timezone for instance if you called the constructor or SetTo() with an invalid timezone code.)
const BStringName () const
 Returns the localized name of the time zone.
int OffsetFromGMT () const
 Return the offset from GMT.
const BStringShortDaylightSavingName () const
 Returns the short name of the daylight savings rules used in this timezone.
const BStringShortName () const
 Returns the short name of the timezone, in the user's locale.
bool SupportsDaylightSaving () const
 Return true if the time zone has daylight saving rules.

Detailed Description

Provides information about time zones.


Constructor & Destructor Documentation

BTimeZone::BTimeZone ( const char *  zoneID = NULL,
const BLanguage *  language = NULL 
)

Construct a timezone from its zoneID and language.

The constructor only allows you to construct a timezone if you already know its code. If you don't know the code, you can instead go through the BCountry class which can enumerate all timezones in a country, or use the BLocaleRoster, which knows the timezone selected by the user.


Member Function Documentation

const BString & BTimeZone::Name ( ) const

Returns the localized name of the time zone.

Use this method to display the time zone's name to the user.

int BTimeZone::OffsetFromGMT ( ) const

Return the offset from GMT.

The offset is a number of seconds, positive or negative.


The Haiku Book pre-R1 - BTimeZone Class Reference
Generated on Fri May 24 2013 by Doxygen 1.7.5.1