NetBurner 3.5.6
PDF Version |
Time zone record structure containing complete time zone information. More...
#include <timezones.h>
Public Attributes | |
const char * | Posix |
POSIX-compliant time zone string. | |
const char * | Description |
Human-readable time zone description. | |
const char * | Name |
Formal time zone name. | |
const char * | Short_name |
Abbreviated time zone name. | |
int | bUsCanada |
US/Canada time zone flag. | |
Time zone record structure containing complete time zone information.
This structure defines a time zone with all necessary information for proper time conversion and display. The NetBurner system provides an array of over 75 pre-configured time zones covering all major regions worldwide.
The POSIX timezone string format is:
Where:
std
= Standard time zone abbreviation (e.g., "PST", "CET")offset
= Hours offset from UTC (e.g., "8" for PST = UTC-8)dst
= Daylight saving time abbreviation (e.g., "PDT", "CEST")start
= DST start rule (e.g., "M3.2.0" = 2nd Sunday in March)end
= DST end rule (e.g., "M11.1.0" = 1st Sunday in November)int TimeZoneRecord::bUsCanada |
US/Canada time zone flag.
Indicates whether this time zone is used in the United States and/or Canada. This flag can be used to filter time zones by region or to apply region-specific time zone selection logic.
const char* TimeZoneRecord::Description |
Human-readable time zone description.
A descriptive string that includes the GMT offset and major cities or regions in the time zone. This is useful for displaying time zone selections to users.
Format: "(GMT +/- HH:MM) City/Region descriptions"
Examples:
const char* TimeZoneRecord::Name |
Formal time zone name.
The official or formal name of the time zone, often matching Windows time zone names for compatibility. Used for documentation and display.
Examples:
const char* TimeZoneRecord::Posix |
POSIX-compliant time zone string.
The POSIX timezone string defines the time zone offset from UTC and optional daylight saving time rules. This string is used with the standard tzset() function to configure the system's time zone.
Format examples:
const char* TimeZoneRecord::Short_name |
Abbreviated time zone name.
A short 3-6 character abbreviation for the standard time zone name. This is typically the standard time abbreviation (not DST). Padded with spaces to 6 characters for alignment.
Examples: