diff options
author | Jim Meyering <jim@meyering.net> | 2003-05-30 16:01:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-05-30 16:01:04 +0000 |
commit | fadd3236776e75dbef0438910aee80b23441e25f (patch) | |
tree | 65762dc1ff3c805839616d9f5d558907258ac9dc /lib/mktime.c | |
parent | db417f264e7bc0f1a834c65b4cc27b562d711e65 (diff) | |
download | coreutils-fadd3236776e75dbef0438910aee80b23441e25f.tar.xz |
Update from gnulib.
Diffstat (limited to 'lib/mktime.c')
-rw-r--r-- | lib/mktime.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/mktime.c b/lib/mktime.c index f4c2c67d2..01da3e4ce 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -1,5 +1,5 @@ /* Convert a `struct tm' to a time_t value. - Copyright (C) 1993-1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1993-1999, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert (eggert@twinsun.com). @@ -265,12 +265,6 @@ __mktime_internal (struct tm *tp, int sec_requested = sec; - /* Only years after 1970 are defined. - If year is 69, it might still be representable due to - timezone differences. */ - if (year < 69) - return -1; - #if LEAP_SECONDS_POSSIBLE /* Handle out-of-range seconds specially, since ydhms_tm_diff assumes every minute has 60 seconds. */ @@ -378,14 +372,6 @@ __mktime_internal (struct tm *tp, return -1; } - if (year == 69) - { - /* If year was 69, need to check whether the time was representable - or not. */ - if (t < 0 || t > 2 * 24 * 60 * 60) - return -1; - } - *tp = tm; return t; } |