diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-06-22 13:44:50 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-06-22 13:49:09 -0700 |
commit | 21fbc0a19366f89638a30eef2b53c6d4baafdb88 (patch) | |
tree | 72d20654a70d7b7b953791bcffd24f1c6a025901 /time/tzset.c | |
parent | 99f9ae4ed0ba9f2c84520b78fd0eeed96a7ed40e (diff) | |
download | glibc-21fbc0a19366f89638a30eef2b53c6d4baafdb88.tar.gz glibc-21fbc0a19366f89638a30eef2b53c6d4baafdb88.tar.xz glibc-21fbc0a19366f89638a30eef2b53c6d4baafdb88.zip |
Call "CST" a time zone abbreviation, not a name
In documentation, call strings like "CST" time zone abbreviations, not time zone names. This terminology is more precise, and is what tzdb uses. A string like "CST" is ambiguous and does not fully name a time zone.
Diffstat (limited to 'time/tzset.c')
-rw-r--r-- | time/tzset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/time/tzset.c b/time/tzset.c index 8c740a4e4d..78c18f8147 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -145,7 +145,7 @@ compute_offset (unsigned int ss, unsigned int mm, unsigned int hh) return ss + mm * 60 + hh * 60 * 60; } -/* Parses the time zone name at *TZP, and writes a pointer to an +/* Parses the time zone abbreviation at *TZP, and writes a pointer to an interned string to tz_rules[WHICHRULE].name. On success, advances *TZP, and returns true. Returns false otherwise. */ static bool @@ -324,10 +324,10 @@ __tzset_parse_tz (const char *tz) memset (tz_rules, '\0', sizeof tz_rules); tz_rules[0].name = tz_rules[1].name = ""; - /* Get the standard timezone name. */ + /* Get the standard time zone abbreviations. */ if (parse_tzname (&tz, 0) && parse_offset (&tz, 0)) { - /* Get the DST timezone name (if any). */ + /* Get the DST time zone abbreviation (if any). */ if (*tz != '\0') { if (parse_tzname (&tz, 1)) |