Searched hist:1902 (Results 1 - 11 of 11) sorted by relevance

/freebsd-10.2-release/lib/libc/xdr/
H A DMakefile.inc1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr.31902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_array.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_float.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_mem.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_reference.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_stdio.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
H A Dxdr_rec.c1902 Sun Aug 07 18:39:35 MDT 1994 wollman Moving RPC stuff into libc, part 2.
/freebsd-10.2-release/usr.bin/touch/
H A Dtouch.cdiff 42307 Tue Jan 05 09:58:02 MST 1999 danny PR: 9323
Submitted by: ishisone@sra.co.jp
Make touch handle years 2000-2038 in the obsoleted format, rather
than 1902-1969 as was previously the case with two digit year spec.
/freebsd-10.2-release/contrib/tzcode/stdtime/
H A Dlocaltime.cdiff 134231 Tue Aug 24 00:15:37 MDT 2004 peter struct tm.tm_year is listed as 'years since 1900', and is signed. On
64 bit systems, years roughly -2^31 through 2^31 can be represented in
time_t without any trouble. 32 bit time_t systems only range from
roughly 1902 through 2038. As a consequence, none of the date munging
code for all the various calendar tweaks before then is present. There
are other problems including the fact that there was no 'year zero' and
so on. So rather than get excited about trying to figure out when the
calendar jumped by two weeks etc, simply disallow negative (ie: prior to
1900) years.

This happens to have an important side effect. If you bzero a 'struct
tm', it corresponds to 'Jan 0, 1900, 00:00 GMT'. This happens to be
representable (after canonification) in 64 bit time_t space. Zero tm
structs are generally an error and mktime normally returns -1 for them.
Interestingly, it tries to canonify the 'jan 0' to 'dec 31, 1899', ie:
year -1. This conveniently trips the negative year test above, which
means we can trivially detect the null 'tm' struct.

This actually tripped up code at work. :-/ (Don't ask)

Completed in 183 milliseconds