]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/timeutils: add common ISO timestamp masks
authorJ William Piggott <elseifthen@gmx.com>
Sun, 15 Oct 2017 00:37:11 +0000 (20:37 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Fri, 10 Nov 2017 21:34:55 +0000 (16:34 -0500)
commit4111bb3ab5f406ee381a3807385af59fe33b28f3
treed03f85ab061bfade57c03c716e5226048fcdc8af
parent9fd0a7a96c8525289d7072fa688579be6418ec30
lib/timeutils: add common ISO timestamp masks

* Start the ISO format flags at bit 0 instead of bit 1.

* Remove unnecessary _8601 from ISO format flag names to
  avoid line wrapping and to ease readability.

* ISO timestamps have date-time-timzone in common, so move
  the TIMEZONE flag to bit 2 causing all timestamp masks
  to have the first three bits set and the last four bits
  as timestamp 'options'.

* Change the 'SPACE' flag to a 'T' flag, because it makes
  the code and comments more concise.

* Add common ISO timestamp masks.

* Implement the ISO timestamp masks in all applicable code
  using the strxxx_iso() functions.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
include/timeutils.h
lib/timeutils.c
login-utils/last.c
login-utils/lslogins.c
login-utils/utmpdump.c
misc-utils/uuidparse.c
sys-utils/dmesg.c
sys-utils/hwclock.c
sys-utils/lsipc.c
sys-utils/rfkill.c
term-utils/script.c