Provides information about time zones. More...
Public Member Functions | |
| BTimeZone (const char *zoneID=NULL, const BLanguage *language=NULL) | |
| Construct a timezone from its zoneID and language. | |
| const BString & | DaylightSavingName () const |
| Returns the name of the daylight savings rules used in this timezone. | |
| const BString & | ID () 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 BString & | Name () const |
| Returns the localized name of the time zone. | |
| int | OffsetFromGMT () const |
| Return the offset from GMT. | |
| const BString & | ShortDaylightSavingName () const |
| Returns the short name of the daylight savings rules used in this timezone. | |
| const BString & | ShortName () 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. | |
Provides information about time zones.
| 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.
| 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.