[tz] [PROPOSED 00/18] tzselect improvements for configuring "from now on"
Paul Eggert
eggert at cs.ucla.edu
Tue Dec 19 07:25:49 UTC 2023
For some time I've been meaning to extend tzselect so that users who
care only about timestamps from now on can have a smaller set of
timezones to choose from, thus simplifying configuration.
This patchset does this via a new file zonenow.tab, with contents like
zone1970.tab except that zonenow.tab partitions based on timestamps
from now on, instead of from 1970 on. The new file's format is still
experimental and feedback is welcome.
These patches mostly just refactor tzselect, to simplify support for
the new feature. The last patch adds the new feature.
Paul Eggert (18):
More-systematic punctuation in *.tab comments
Improve Canadian comments in zone*.tab
Open /dev/null less often in tzselect
* Makefile: Say that ‘make’ should conform to POSIX.
Improve tzselect diagnostics after rejection
Don’t set TZ in tzselect
Do not use empty RE in tzselect
Port to POSIX awk, which prohibits -v newlines
tzselect: work around mawk bug with {2,}
* tzselect: Improve leading comments.
tzselect: clarify translit need
tzselect: port to POSIX iconv
* NEWS: Improve formatting of tzselect news.
tzselect: do not create temporary files
* tzselect: Indent more consistently.
* tzselect.ksh: Consistently omit ‘;;’ before ‘esac’.
* tzselect.ksh: Indent more consistently.
New tzselection option ‘now’
Makefile | 34 +-
NEWS | 28 +-
checknow.awk | 53 +++
checktab.awk | 7 +-
tzselect.ksh | 977 ++++++++++++++++++++++++++++-----------------------
zone.tab | 24 +-
zone1970.tab | 24 +-
zonenow.tab | 298 ++++++++++++++++
8 files changed, 978 insertions(+), 467 deletions(-)
create mode 100644 checknow.awk
create mode 100644 zonenow.tab
--
2.40.1
More information about the tz
mailing list