All of lore.kernel.org
 help / color / mirror / Atom feed
* [V3 PULL] hwclock: remove date(1)
@ 2017-03-04 21:56 J William Piggott
  2017-03-05  1:12 ` Pádraig Brady
  2017-03-14 13:17 ` Karel Zak
  0 siblings, 2 replies; 7+ messages in thread
From: J William Piggott @ 2017-03-04 21:56 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux


Everyone,
 Here's the latest branch for adding parse-date.

Karel,
I have changed a few things since the last working branch I sent you.  I
moved the API from parse-date.h to timeutils.h. Cleaned up the code some
more and made more style conversion. Added documentation and fixed
hwclock.8.in.

I've tested the parser pretty thoroughly now, including using odd input
listed in bug fixes. It passed for all of them.

Here are examples of the problem related to the latest gnulib
parse_datetime() commit; which was actually caused by changes in
coreutils not gnulib.

BROKEN
TZ="Europe/London" date -d 'TZ="Australia/Perth" 2016-08-15 07:00'
Mon Aug 15 07:00:00 AWST 2016

CORRECT
TZ="Europe/London" date -d 'TZ="Australia/Perth" 2016-08-15 07:00'
Mon Aug 15 00:00:00 BST 2016

HWCLOCK CORRECT
TZ="Europe/London" ./hwclock --predict --noadjfile --utc --date 'TZ="Australia/Perth" 2016-08-15 07:00'
2016-08-15 00:00:00.000000+0100

Not that anyone should ever get up to such a thing with hwclock anyway.

 ---

The following changes since commit 1765814521bf2aba7b8c03d3ab2e3b784e1ce2c4:

  libsmartcols: allow to add column to already used table (2017-03-03 10:37:37 +0100)

are available in the git repository at:

  git@github.com:jwpi/util-linux.git hwclock-date7

for you to fetch changes up to b80d6d4be8371b6e8fa4a31a1fc1f7ce57a91be7:

  lib: add parse-date documentation (2017-03-04 15:03:44 -0500)

----------------------------------------------------------------
J William Piggott (3):
      lib: add parse-date.y
      hwclock: use parse_date function
      lib: add parse-date documentation

Karel Zak (1):
      build-sys: add parse-date.y

 .gitignore                   |    1 +
 Documentation/parse-date.txt |  468 ++++++++++++
 autogen.sh                   |   20 +
 configure.ac                 |    2 +-
 include/cctype.h             |  325 +++++++++
 include/timeutils.h          |    2 +
 lib/.gitignore               |    1 +
 lib/Makemodule.am            |    1 +
 lib/parse-date.y             | 1645 ++++++++++++++++++++++++++++++++++++++++++
 sys-utils/hwclock.8.in       |   22 +-
 sys-utils/hwclock.c          |  104 +--
 11 files changed, 2480 insertions(+), 111 deletions(-)
 create mode 100644 Documentation/parse-date.txt
 create mode 100644 include/cctype.h
 create mode 100644 lib/.gitignore
 create mode 100644 lib/parse-date.y

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-23 14:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-04 21:56 [V3 PULL] hwclock: remove date(1) J William Piggott
2017-03-05  1:12 ` Pádraig Brady
2017-03-05 14:09   ` J William Piggott
2017-03-14 13:17 ` Karel Zak
2017-03-23  0:43   ` J William Piggott
2017-03-23 11:41     ` Karel Zak
2017-03-23 14:37       ` J William Piggott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.