Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/bin/date
Module Name: src
Committed By: kre
Date: Tue Sep 17 14:56:48 UTC 2024
Modified Files:
src/bin/date: date.1 date.c
Log Message:
Add -U and -z options to date(1).
-U allows the (internal) TZ setting to be returned
to what it was when date started running.
-z zone sets TZ to be "zone" unless that is an empty
string, in which case it causes TZ to be removed from
the environment.
These can be used together to manipulate TZ around
parsing of a -d arg, to allow its parsing to be done
in a different zone than the one used for output, and
all unrelated to the initial TZ setting (or system default).
Note that these new options only appear in the first
synopsis form in both the man page and usage(), as -d
also appears only there, and these options make little
sense without also using -d.
This is a very simple change which amounts to no more
that a few setenv() and unsetenv() calls.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/bin/date/date.1
cvs rdiff -u -r1.68 -r1.69 src/bin/date/date.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index