summaryrefslogtreecommitdiff
path: root/time.c
AgeCommit message (Collapse)Author
2009-12-02* time.c (time_asctime): workaround for MSVCRT's bug.usa
backported from trunk (r18871). ref [ruby-core:26992] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-28* time.c: rdoc fix for <=>marcandre
* array.c: ditto * bignum.c: ditto * compar.c: ditto * file.c: ditto * numeric.c: ditto * string.c: rdoc fix for <=> and casecmp git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-22* *.[chy]: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-06* time.c (NUM2TIMET): defined because some platforms, such asakr
NetBSD5/amd64 and NetBSD6/i386, has time_t which size is different from long. (NetBSD 5 uses 32bit time_t for all, including 64bit, platforms. NetBSD 6 uses 64bit time_t for all, including 32bit, platforms.) (TIMET2NUM): defined. (time_timeval): use NUM2TIMET. (time_s_at): ditto. (time_to_i): use TIMET2NUM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-12* time.c (time_timeval): rounds subsecond toward zero.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-22* time.c (time_mload): initializes a variable.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-22* time.c (time_timeval): check out-of-range. [ruby-core:23282]nobu
[Bug #1396] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-24 * time.c: RDoc typo fixed.nahi
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-10* time.c (time_mdump, time_mload): preserves GMT status.nobu
[ruby-core:19252] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27* time.c: fix rounding negative float.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01* suppress warnings on cygwin, mingw and mswin.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31* suppress warnings with -Wwrite-string.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-21 * time.c: should include <errno.h> to refer errno.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-21 * time.c (rb_strftime): check errno to detect strftime(3)'s error.usa
this is workaround for recent version of MSVCRT. [ruby-dev:34456] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-04* time.c (time_arg): use converted object. [ruby-core:14759]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-17* time.c (time_succ): Time#succ should return a time object in thematz
same timezone mode to the original. [ruby-talk:260256] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-06* time.c (time_to_s): Back out the format changes; discussedknu
in [ruby-dev:30495]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-05* time.c (time_to_s): Correct the wrong format which did notknu
really conform to RFC 2822; pointed out by: OHARA Shigeki <os at iij.ad.jp> in [ruby-dev:30487]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-31* time.c (time_dup): duplicate the class of original time.matz
[ruby-core:09357] * lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate): should respect subclasses. [ruby-core:09357] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04* time.c (time_to_s): variable declaration after an executionnobu
statement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04* time.c (time_to_s): make it conform to RFC2822 date format.matz
[ruby-dev:29467] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04* time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27* time.c (time_to_s): fixed format mismatch.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27* time.c: need to declare time_utc_offset.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-27* time.c (time_to_s): use +0900 style timezone string for local time.matz
[ruby-dev:29143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-06* time.c (time_mload): a patch from Daniel Bergermatz
<Daniel.Berger at qwest.com>. [ruby-core:08128] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-18* time.c (time_timeval): should round for usec floatingmatz
number. [ruby-core:07896] * time.c (time_add): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-24* time.c (time_new_internal): add prototype to tell the compilerusa
arugments types. * win32/win32.c (NtInitialize): need to set a handler for VC++8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-14* time.c (search_time_t): support non 32bit time_t environments.usa
* win32/Makefile.sub (config.h): VC++8 has ``long long'' type. * win32/Makefile.sub (config.h): VC++8's time_t is 64bit value. * win32/win32.c (rb_w32_utime): drop read-only attribute before changing file time. all changes are backported from CVS HEAD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-22* time.c (rb_strftime): removed meaningless volatile modifiers, andnobu
concatenate successive nul characters at once. [ruby-dev:27472] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-21* time.c: should use LONG_LONG instead of `long long'.ocean
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-10-18* eval.c, gc.c, time.c: made internal symbols static. [ruby-dev:27435]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-28* class.c (rb_mod_init_copy, rb_class_init_copy), file.c (rb_stat_init_copy),nobu
numeric.c (num_init_copy), object.c (rb_obj_init_copy, Init_Object), re.c (match_init_copy, rb_reg_init_copy), time.c (time_init_copy): undocumented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-20* string.c (rb_str_new4): should propagate taintedness.matz
* struct.c (rb_struct_set): use original method name, not callee name, to retrieve member slot. [ruby-core:04268] * time.c (time_strftime): protect from format modification from GC finalizers. * gc.c (rb_data_object_alloc): klass may be NULL. [ruby-list:40498] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14* eval.c (eval): warning during eval should not cause deadlock.matz
[ruby-talk:98651] * eval.c (rb_eval): raise TypeError exception for superclass mismatch. [ruby-dev:39567] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-30* time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT.eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-06* configure.in: check the size of time_t.akr
* time.c (time_add): new function. (time_plus): use time_add. (time_minus): use time_add. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-05* eval.c (top_include): include in the wrapped load is done formatz
the wrapper, not for a singleton class for wrapped main. [ruby-dev:23305] * bignum.c (rb_big_eq): use temporary double variable to save the result (internal float register may be bigger than 64 bits, for example, 80 bits on x86). [ruby-dev:23311] * eval.c (block_pass): should generate unique identifier of the pushing block. [ruby-talk:96363] * ext/socket/socket.c (make_hostent): fix memory leak, based on the patch from HORIKAWA Hisashi <[email protected]>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-31* time.c (year_leap_p): new function.akr
(timegm_noleapsecond): ditto. (search_time_t): use timegm_noleapsecond instead of mktime for first guess. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-30* time.c (search_time_t): limit guess range by mktime if it isakr
available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-19* io.c, re.c, string.c, time.c: fixed up positions of RDocs.akira
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-30Add RDoc for kernel functions, and tidy updave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-27Add RDoc comments for Timedave
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28* gc.c (gc_mark): explicitly check mark recursion levels, insteadmatz
of unreliable stack length. * file.c (path_check_1): honor sticky bits always. [ruby-talk:86273] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09* marshal.c (r_object0): remove unnecessary iv restoration formatz
USRMARSHAL. [ruby-dev:21582] * marshal.c (w_object): dump generic instance variables from a string from '_dump'. * variable.c (rb_generic_ivar_table): return 0 if obj's FL_EXIVAR is not set. * time.c (time_dump): copy instance variables to dumped string, to be included in the marshaled data. * bignum.c (rb_big2ulong): add range check to ensure round trip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-09* pack.c (uv_to_utf8): change message to "out of range", sincematz
negative values are not "too big". [ruby-dev21567] * marshal.c (w_object): should pass the value of "weak" to w_object(). [ruby-dev:21555] and [ruby-dev:21561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-02* time.c (Init_Time): define initialize. [ruby-dev:21469]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-02* time.c (time_load): restore instance variables (if any) beforematz
loading from marshaled data. * time.c (time_mdump): new marshal dumper. _dump is still available for compatibility. * time.c (time_mload): new marshal loader. * marshal.c (w_object): preserve instance variables for objects with marshal_dump. * marshal.c (r_object0): restore instance variables before calling marshal_load. * error.c (rb_warn_m): always return nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-16* marshal.c (w_symbol, w_object): get rid of warnings.nobu
* re.c (rb_memsearch): ditto. * time.c (time_dump): ditto. * ext/extmk.rb (extmake): not continue making when extconf.rb failed. * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely. * ext/openssl/ossl.h: remove version.h dependency. * ext/openssl/ruby_missing.h: ditto. * lib/mkmf.rb (pkg_config): use --libs output except with only-L for other options. [ruby-list:38099] * lib/mkmf.rb (create_makefile): separate rule for static library from shared object. * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub: define exec_prefix and libdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-24* gcc -Wall clean-up.matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e