diff options
author | Jim Meyering <jim@meyering.net> | 1998-10-03 17:18:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-10-03 17:18:52 +0000 |
commit | 2ebff08169c14e2103388d86359fbac61a63459b (patch) | |
tree | ffdec97521ef90774b5dcb741863ebf7006aa1d5 /src | |
parent | 5b1af1141062510d4ff5d0c94cbe9d94cada0d96 (diff) | |
download | coreutils-2ebff08169c14e2103388d86359fbac61a63459b.tar.xz |
(main): Update to use new version of posixtime.
Diffstat (limited to 'src')
-rw-r--r-- | src/date.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c index 75459684c..bf5b565b4 100644 --- a/src/date.c +++ b/src/date.c @@ -27,6 +27,7 @@ #include "getline.h" #include "error.h" #include "getdate.h" +#include "posixtm.h" #ifndef STDC_HEADERS size_t strftime (); @@ -37,7 +38,6 @@ int putenv (); int stime (); char *xstrdup (); -time_t posixtime (); static void show_date PARAMS ((const char *format, time_t when)); static void usage PARAMS ((int status)); @@ -307,7 +307,8 @@ argument must be a format string beginning with `+'."), given in the POSIX-format. */ set_date = 1; datestr = argv[optind]; - when = posixtime (datestr); + when = posixtime (datestr, + PDS_TRAILING_YEAR | PDS_CENTURY | PDS_SECONDS); format = NULL; } else |