aboutsummaryrefslogtreecommitdiffstats
path: root/lib/date.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/date.rb: [Feature #4257]tadf2011-02-261-167/+196
| | | | | | | | | | * ext/date/extconf.rb: new * ext/date/date_core.c: new git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date#===): [ruby-core:35127]tadf2011-02-121-4/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (daynum): should be private.tadf2010-11-221-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: some improvements for performance.tadf2010-11-211-11/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: some corrections of documentation.tadf2010-10-241-33/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: [ruby-core:32096] Thanks Colin Bartlett.tadf2010-09-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: [ruby-core:31695]tadf2010-08-221-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: Re-revert the part of r28950.naruse2010-08-171-5/+5
| | | | | | It reverted the part of r28619. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [ruby-core:31658]tadf2010-08-101-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Fix unused variable warnings.marcandre2010-07-111-5/+5
| | | | | | | | | | | | | | | | | | | | | | Patch by Run Paint [ruby-core:30991] * lib/date.rb: ditto * lib/debug.rb: ditto * lib/drb/drb.rb: ditto * lib/drb/invokemethod.rb: ditto * lib/irb/ruby-lex.rb: ditto * lib/irb/slex.rb: ditto * lib/logger.rb: ditto * lib/pathname.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c, rational.c, lib/cmath.rb, lib/date.rb lib/date/delta*:tadf2010-04-261-0/+9
| | | | | | | | reverted r27484-27486. now official spec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/delta*: reverted experimental r24567 andtadf2010-04-251-9/+0
| | | | | | | | r25393. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date#>>): fixed. [ruby-core:28011]tadf2010-03-221-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: do not require lib/delta.rb.tadf2009-10-181-8/+1
| | | | | | | | * lib/date/delta.rb: follows the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/delta.rb: merged from date4. [experimental]tadf2009-08-161-1/+17
| | | | | | | | | | * lib/date/delta/parser.*: ditto. * lib/date.rb: followed the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (complete_frags): Monday must be suitable for %W'stadf2009-08-111-2/+2
| | | | | | | | default day. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: use subsec instead of nsec.tadf2009-05-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): changed again.tadf2008-11-241-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): reverted the previous change.tadf2008-11-111-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (inspect): changed the format.tadf2008-11-101-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (today,now): should produce own instances.tadf2008-10-071-2/+13
| | | | | | | | [ruby-talk:317020] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: no need to require the "lib/rational.rb" any more.tadf2008-08-221-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (once): use Object#object_id instead of Symbol#to_i.akr2008-05-121-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed a typo.tadf2008-01-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (marshal_load): initialize the cache.tadf2008-01-211-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (once): use an instance variable which points a hashtadf2008-01-191-4/+7
| | | | | | | as cache. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: parse's hints as antadf2008-01-191-4/+4
| | | | | | | experimental function has been removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date::Infinity#<=>): didn't work. A patch fromtadf2008-01-171-4/+4
| | | | | | | | | | | Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098]. This is a bug obviously. However it didn't affect the library's functions. * lib/date.rb, lib/date/format.rb: some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: tuning for performance.tadf2008-01-121-9/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: introduced some constantstadf2008-01-061-32/+57
| | | | | | | | | (for internal use) and aliases (minute and second). * sample/cal.rb: trivial adjustments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (_valid_time?): I'm not sure to recommend such antadf2007-12-301-4/+4
| | | | | | | expression. but anyway it is acceptable now. [ruby-core:14580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]tadf2007-12-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* a reaction to recent time's changes.tadf2007-12-011-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_send): allow send/__send__ to call methods of allmatz2007-11-041-9/+9
| | | | | | | | | | visibility again. we no longer provide __send, __send!. * eval.c (rb_invoke_method): new method to honor private visibility. if it's invoked in a function call style, it calls private methods as well (previous 1.9 send behavior). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (str[fp]time): now check specifications moretadf2007-09-081-2/+7
| | | | | | | | | | strictly. * and some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb (Date._parse): now can take sometadf2007-07-211-4/+68
| | | | | | | | | | | | | | | | hints (its aim must be mainly determination of endianness of date). [experimental] * lib/date.rb, lib/date/format.rb (Date._parse): now completes truncated year as default action. [experimental] * lib/date.rb, lib/date/format.rb: added ::iso8601, ::rfc3339, ::xmlschema, ::rfc2822, ::httpdate, ::jisx0301, #xmlschema, #httpdate. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.tadf2006-12-301-481/+538
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.7.tadf2006-11-051-9/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.5.tadf2006-10-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb (Date::self.complete_hash): need to check if g ismatz2006-10-121-1/+1
| | | | | | | nil before dereference. [ruby-core:09116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use __send! instead of funcall.tadf2006-10-091-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.4.tadf2006-09-301-18/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.3.tadf2006-09-241-14/+88
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.2.tadf2006-09-221-50/+47
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.1.tadf2006-09-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.tadf2006-09-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.8.2.tadf2006-08-251-63/+237
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cancelled r1.25tadf2006-07-021-3/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed an issue about mathn.tadf2006-06-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* synchronized with date2 3.7tadf2005-10-291-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e