aboutsummaryrefslogtreecommitdiffstats
path: root/lib/date
Commit message (Collapse)AuthorAgeFilesLines
* * lib/date.rb: do not require lib/delta.rb.tadf2009-10-181-0/+31
| | | | | | | | * 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: removed require 'date'. added to_c.tadf2009-08-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/delta.rb: merged from date4. [experimental]tadf2009-08-163-0/+785
| | | | | | | | | | * 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/format.rb (strptime): removed \v; since \s includes \v.tadf2009-08-161-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: reverted.tadf2009-08-161-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: suppressed a warning.naruse2009-08-161-7/+7
| | | | | | * lib/irb/ruby-lex.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): m17n compliant.tadf2008-12-161-40/+40
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (strftime): ignores '_' flag for %[LN].tadf2008-11-241-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: no need to require the "lib/rational.rb".tadf2008-10-041-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb(strftime): can print with given arbitrarytadf2008-08-251-4/+8
| | | | | | | | | | | precision. * lib/date/format.rb(strftime): optional flags and filed width should also affect %[nt]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverttadf2008-08-221-10/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime): supported flags and precision for mostnobu2008-08-221-4/+10
| | | | | | | | | | conversions. [ruby-dev:35906] * lib/date/format.rb (Date#strftime): left-justifies %L and %N. [ruby-dev:35909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/lib/json/pure/generator.rb,naruse2008-02-121-3/+3
| | | | | | | | | | | | | | | ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb, ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb, lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb, lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb, lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb, lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb, lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb, lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb, lib/yaml/encoding.rb: performance tuning arround String#gsub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: parse's hints as antadf2008-01-191-192/+51
| | | | | | | 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-3/+3
| | | | | | | | | | | 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-4/+4
| | | | 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-27/+25
| | | | | | | | | (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/format.rb (_xmlschema): some improvements.tadf2007-12-261-28/+59
| | | | | | | | * lib/date/format.rb (_parse): a new hint compfunc. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_strptime): now also attaches an elementtadf2007-09-091-2/+7
| | | | | | | | which denotes leftover substring if exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (str[fp]time): now check specifications moretadf2007-09-081-42/+44
| | | | | | | | | | strictly. * and some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): improved parsing of ordinal dates.tadf2007-09-011-12/+21
| | | | | | | | | * lib/date/format.rb (_parse): use named character classes in some regular expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: reverted some wrongly erased "o" optionstadf2007-08-101-10/+10
| | | | | | | | (pointed out by nobu). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (_parse): now interprets slashed numericaltadf2007-07-311-1/+1
| | | | | | | | dates as a big endian (except dd/mm/yyyy). [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date._parse): now accepts some newtadf2007-07-221-20/+57
| | | | | | | | | | | hints. [experimental] * lib/parsedate.rb: followed the changes on lib/date/format.rb. [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb (Date._parse): now can take sometadf2007-07-211-20/+237
| | | | | | | | | | | | | | | | 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
* * lib/date/format.rb (Date._parse): completes calendar week based year.tadf2007-07-201-17/+23
| | | | | | | | | | | * lib/date/format.rb (Date._parse): detects year of ordinal date in extended format. * and some trivial adjustments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date._parse): detects some OFX datestadf2007-05-191-6/+15
| | | | | | | (Of course not fully). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date._parse): revised treatment oftadf2007-05-081-41/+103
| | | | | | | | | | hyphend/separatorless dates. * lib/date/format.rb: some trivial adjustments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: reverted.tadf2007-05-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Format::Bag#method_missing): get rid ofnobu2007-05-051-1/+1
| | | | | | | modifying orginal argument. [ruby-core:11090] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: added some zone names.tadf2007-04-151-26/+37
| | | | | | | | * lib/date/format.rb (_parse): now interprets doted numerical dates as a big endian (except dd.mm.yyyy). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.3.tadf2007-02-181-9/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date::Format::Bag::method_missing): need notmatz2007-02-141-10/+9
| | | | | | | to use instance variables corresponding each method; use Hash instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (reg_operand): allow symbols to be operands for regularmatz2007-02-141-2/+2
| | | | | | | | | | | expression matches. * string.c (Init_String): allow Symbol#===. * lib/date/format.rb (Date::Format::Bag::to_hash): string added prefixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (Date::Format::Bag::method_missing): addmatz2007-02-131-1/+1
| | | | | | prefix to avoid making t class-local instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.1.tadf2007-01-071-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 4.0.tadf2006-12-301-68/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.6.tadf2006-10-241-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.4.tadf2006-09-301-557/+435
| | | | 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-10/+9
| | | | 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-34/+81
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,nobu2006-09-181-4/+2
| | | | | | | | | | | | Kernel#instance_variable_defined? and Module#class_variable_defined?. [ruby-dev:29587] * lib/date/format.rb (Date::Bag#method_missing): use new method, instance_variable_defined? to check if an instance variable is defined. fixed: [ruby-dev:29554] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated based on date2 3.9.1.tadf2006-09-101-68/+172
| | | | 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-11/+76
| | | | 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-463/+855
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverttadf2006-08-071-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb: specify maximum number of digits to parsematz2006-08-071-4/+4
| | | | | | | | "200608007". %Y(4), %y(2), %m(2), %d(2). [ruby-core:8484] [experimental] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* %[EO]U didn't denote %U.tadf2006-08-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* "%\n" means "\n".tadf2006-08-051-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb (__strptime, strftime): allow multi-line patternsnobu2006-08-041-2/+2
| | | | | | | | in Date#strftime the same as Time#strftime accepts. fixed: [ruby-core:08466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e