OSDN Git Service

Fix year parsing in date(1).
authorElliott Hughes <enh@google.com>
Wed, 11 Nov 2015 02:21:51 +0000 (18:21 -0800)
committerRob Landley <rob@landley.net>
Fri, 13 Nov 2015 03:26:56 +0000 (21:26 -0600)
commitd885b528f2d26435ecff83da9e50e815ac73605b
tree848304ecf9db6e945195fea21c4c97df84fcf20c
parent26ec1c05b0eef896b59fe3c870f6885fa7edf4ae
Fix year parsing in date(1).

Four-digit years were being mangled by the code for two-digit years.
Move all the two-digit year code into the "we only saw two digits" case.

Add some new tests and fix existing tests.
tests/date.test
toys/posix/date.c