aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_time.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/time.rb (Time#xmlschema): use strftime specifiers instead ofnobu2012-02-281-0/+7
| | | | | | | fractional exponential calcuation which yields undesirable result. [ruby-core:42997][Bug #6100] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set.naruse2011-10-041-0/+1
| | | | | | Reported by Christopher Eberz. [ruby-core:39903] Bug #5399 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime_with_timespec): improved style consistency.yugui2011-05-311-0/+6
| | | | | | | | constified some variables. * test/test_time.rb (TestTime#test_huge_precision): test for #4456. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion.akr2010-06-241-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c: %Y format a year with 4 digits at least.akr2009-11-241-0/+9
| | | | | | | | * lib/time.rb: format a year with 4 digits at least. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_gmtime, rb_localtime): gmtime and localtime returnnobu2009-05-251-1/+1
| | | | | | | NULL on error. [ruby-core:23551] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_time.rb: make tests timezone independent.akr2009-05-181-2/+2
| | | | | | | | reported by zunda. [ruby-dev:38492] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#rfc2822): pad leading zeros for year.akr2009-04-211-0/+13
| | | | | | | | | (Time#httpdate): ditto. (Time#xmlschema): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time#xmlschema): use subsec instead of nsec.akr2009-04-211-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.parse): raise ArgumentError if Date._parse don'takr2009-02-141-0/+1
| | | | | | | | extract date information. [ruby-core:20912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_time.rb: extracted from lib/time.rb.akr2009-02-141-4/+363
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_*.rb: Pathname#parent -> Pathname#dirname.nahi2004-01-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/inlinetest.rb, test/{test_generator.rb,test_ipaddr.rb,nahi2004-01-061-0/+4
test_pathname.rb,test_pp.rb,test_prettyprint.rb,test_set.rb, test_time.rb,test_tsort.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e