summaryrefslogtreecommitdiff
path: root/lib/date
AgeCommit message (Collapse)Author
2008-08-25 * lib/date/format.rb(strftime): can print with given arbitrarytadf
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
2008-08-22reverttadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-22* strftime.c (rb_strftime): supported flags and precision for mostnobu
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
2008-02-12* ext/json/lib/json/pure/generator.rb,naruse
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
2008-01-19 * lib/date.rb, lib/date/format.rb: parse's hints as antadf
experimental function has been removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-17 * lib/date.rb (Date::Infinity#<=>): didn't work. A patch fromtadf
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
2008-01-12 * lib/date.rb, lib/date/format.rb: tuning for performance.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 * lib/date.rb, lib/date/format.rb: introduced some constantstadf
(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
2007-12-26 * lib/date/format.rb (_xmlschema): some improvements.tadf
* 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
2007-09-09 * lib/date/format.rb (_strptime): now also attaches an elementtadf
which denotes leftover substring if exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-08 * lib/date/format.rb (str[fp]time): now check specifications moretadf
strictly. * and some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-01 * lib/date/format.rb (_parse): improved parsing of ordinal dates.tadf
* 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
2007-08-10 * lib/date/format.rb: reverted some wrongly erased "o" optionstadf
(pointed out by nobu). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-31 * lib/date/format.rb (_parse): now interprets slashed numericaltadf
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
2007-07-22 * lib/date/format.rb (Date._parse): now accepts some newtadf
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
2007-07-21 * lib/date.rb, lib/date/format.rb (Date._parse): now can take sometadf
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
2007-07-20 * lib/date/format.rb (Date._parse): completes calendar week based year.tadf
* 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
2007-05-19 * lib/date/format.rb (Date._parse): detects some OFX datestadf
(Of course not fully). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-08 * lib/date/format.rb (Date._parse): revised treatment oftadf
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
2007-05-08 * lib/date/format.rb: reverted.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-05* lib/date/format.rb (Format::Bag#method_missing): get rid ofnobu
modifying orginal argument. [ruby-core:11090] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-15 * lib/date/format.rb: added some zone names.tadf
* 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
2007-02-18updated based on date2 4.0.3.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14* lib/date/format.rb (Date::Format::Bag::method_missing): need notmatz
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
2007-02-14* re.c (reg_operand): allow symbols to be operands for regularmatz
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
2007-02-13* lib/date/format.rb (Date::Format::Bag::method_missing): addmatz
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
2007-01-07updated based on date2 4.0.1.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-30updated based on date2 4.0.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-10-24updated based on date2 3.9.6.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-30updated based on date2 3.9.4.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-24updated based on date2 3.9.3.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-22 updated based on date2 3.9.2.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-18* object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,nobu
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
2006-09-10updated based on date2 3.9.1.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-04updated based on date2 3.9.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-25updated based on date2 3.8.2.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07reverttadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-07* lib/date/format.rb: specify maximum number of digits to parsematz
"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
2006-08-06%[EO]U didn't denote %U.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-05"%\n" means "\n".tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04* lib/date/format.rb (__strptime, strftime): allow multi-line patternsnobu
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
2005-02-06synchronized with date2 3.6.3tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-06checks whether zone was given.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-20synchronized with date2 3.6.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-18synchronized with date2 3.5.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-31yyyy/mm is not an acceptable format.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-04synchronized with date2 3.3.2.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29* instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,akr
lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert escape for `-' in character class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-21* lib/date/format.rb, lib/uri/common.rb: `[', `]', `-' in chracterakr
class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-21* regex.c (re_compile_pattern): fix previous change.akr
* instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb, lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb, lib/optparse.rb, lib/time.rb, lib/date/format.rb, lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in regexp to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e