1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 19:34:19 +02:00

add date2sec and sec2date from the manual

This commit is contained in:
Jim Meyering
1997-07-12 21:56:35 +00:00
parent 0e6b6d4c5c
commit b6a57ff354

View File

@@ -84,7 +84,11 @@ sub test_vector
['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {}, "$dy $t0", 0],
['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {}, "08/01/97,10:00", 0],
['utc-1', "-d '1970-01-01 00:00:01' '+%s'", {}, "7201", 0],
['utc-1', "-d '1970-01-01 00:00:01' +%s", {}, "7201", 0],
['date2sec-0', "-d 2000-01-01 +%s", {}, "946684800", 0],
['sec2date-0', "-d '1970-01-01 UTC 946684800 sec' +'%Y-%m-%d %T %z'", {},
"2000-01-01 00:00:00 +0000", 0],
# FIXME: add a lot more...
);