ruby--ruby/missing
akr b48e38c526 * time.c: new method `gmtoff', `gmt_offset' and `utc_offset'.
(time_utc_offset): new function.
(Init_Time): bind above methods to `time_utc_offset'.

* time.c: 64bit time_t support.
(time_s_at): use NUM2LONG instead of NUM2INT for tv_sec.
(time_arg): initialize tm_isdst correctly.
use long to initialize tm_year.
(search_time_t): renamed from `make_time_t'.
(make_time_t): call `timegm' and `mktime' instead of `search_time_t'
if availabe.
(time_to_i): use LONG2NUM instead of INT2NUM.
(time_localtime): check localtime failure.
(time_gmtime): check gmtime failure.
(time_year): use LONG2NUM instead of INT2FIX.
(time_to_a): use long for tm_year.
(time_dump): check tm_year which is not representable with 17bit.
(time_load): initialize tm_isdst.

* configure.in: check existence of `mktime' and `timegm'.
check existence of tm_gmtoff field of struct tm.
fix negative time_t for 64bit time_t.

* missing/strftime.c: fix overflow by tm_year + 1900.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-17 06:45:37 +00:00
..
alloca.c forgot some checkins. 2001-05-06 15:06:00 +00:00
crypt.c Initial revision 1998-01-16 12:13:05 +00:00
dup2.c 1.4.0 1999-08-13 05:45:20 +00:00
file.h 2000-02-18 2000-02-18 06:59:36 +00:00
finite.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
flock.c * eval.c: remove TMP_PROTECT_END to prevent C_ALLOCA crash. 2001-03-26 08:57:16 +00:00
hypot.c * io.c (argf_seek_m): wrong calling sequence of rb_io_seek(). 2001-03-13 05:45:13 +00:00
isinf.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
isnan.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
memcmp.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
memmove.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
mkdir.c Initial revision 1998-01-16 12:13:05 +00:00
os2.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strcasecmp.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strchr.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strerror.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strftime.c * time.c: new method `gmtoff', `gmt_offset' and `utc_offset'. 2001-12-17 06:45:37 +00:00
strncasecmp.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strstr.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strtod.c 2000-02-17 2000-02-17 07:11:22 +00:00
strtol.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00
strtoul.c Initial revision 1998-01-16 12:13:05 +00:00
vsnprintf.c Mon Jan 15 16:00:07 2001 Yukihiro Matsumoto <matz@ruby-lang.org> 2001-01-15 07:01:00 +00:00
x68.c * parse.y (primary): rescue and ensure clauses should be allowed 2001-03-06 08:17:54 +00:00