Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions src/tzfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
** Thank you!
*/

/*
** Information about time zone files.
*/

#ifndef TZDEFRULES
# define TZDEFRULES "posixrules"
#endif /* !defined TZDEFRULES */


/* See Internet RFC 9636 for more details about the following format. */
/* Information about time zone files.
See Internet RFC 9636 for more details about the following format. */

/*
** Each file begins with. . .
Expand Down Expand Up @@ -97,23 +89,25 @@ struct tzhead {
*/

#ifndef TZ_MAX_TIMES
/* This must be at least 242 for Europe/London with 'zic -b fat'. */
/* The following limit applies to localtime.c; zic has no such limit.
The limit must be at least 310 for Asia/Hebron with 'zic -b fat'. */
# define TZ_MAX_TIMES 2000
#endif /* !defined TZ_MAX_TIMES */

#ifndef TZ_MAX_TYPES
/* This must be at least 18 for Europe/Vilnius with 'zic -b fat'. */
# define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
# define TZ_MAX_TYPES 256 /* Limited to 256 by Internet RFC 9636. */
#endif /* !defined TZ_MAX_TYPES */

#ifndef TZ_MAX_CHARS
/* This must be at least 40 for America/Anchorage. */
# define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
/* (limited by what unsigned chars can hold) */
# define TZ_MAX_CHARS 256 /* Maximum number of abbreviation characters */
/* (limited to 256 by Internet RFC 9636) */
#endif /* !defined TZ_MAX_CHARS */

#ifndef TZ_MAX_LEAPS
/* This must be at least 27 for leap seconds from 1972 through mid-2023.
/* The following limit applies to localtime.c; zic has no such limit.
The limit must be at least 27 for leap seconds from 1972 through mid-2023.
There's a plan to discontinue leap seconds by 2035. */
# define TZ_MAX_LEAPS 50 /* Maximum number of leap second corrections */
#endif /* !defined TZ_MAX_LEAPS */
Expand Down
2 changes: 1 addition & 1 deletion testdata/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025c
2026a
Binary file modified testdata/zoneinfo/Asia/Tbilisi
Binary file not shown.
Binary file modified testdata/zoneinfo/Europe/Chisinau
Binary file not shown.
Binary file modified testdata/zoneinfo/Europe/Tiraspol
Binary file not shown.
3 changes: 0 additions & 3 deletions testdata/zoneinfo/zonenow.tab
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ XX +3003+03115 Africa/Cairo Egypt
# +02/+03 - EET/EEST (Lebanon DST)
XX +3353+03530 Asia/Beirut Lebanon
#
# +02/+03 - EET/EEST (Moldova DST)
XX +4700+02850 Europe/Chisinau Moldova
#
# +02/+03 - EET/EEST (Palestine DST)
XX +3130+03428 Asia/Gaza Palestine
#
Expand Down
Loading