diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-19 08:23:33 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-19 08:23:33 +0000 |
commit | bf031c96998f1b98c91722f22249a32ffa2aadf0 (patch) | |
tree | fdbdd7846ac6d00f6832c340ad1d3358481267d0 /lib/date.rb | |
parent | df28713ee338a4de5f6e67896dee3a2944d14102 (diff) | |
download | ruby-bf031c96998f1b98c91722f22249a32ffa2aadf0.tar.gz |
* lib/date.rb, lib/date/format.rb: parse's hints as an
experimental function has been removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/date.rb')
-rw-r--r-- | lib/date.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/date.rb b/lib/date.rb index a1d70139aa..b20636481a 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -1062,8 +1062,8 @@ class Date # Day Number day 0. # # +sg+ specifies the Day of Calendar Reform. - def self.parse(str='-4712-01-01', hints={}, sg=ITALY) - elem = _parse(str, hints) + def self.parse(str='-4712-01-01', comp=true, sg=ITALY) + elem = _parse(str, comp) new_by_frags(elem, sg) end @@ -1709,8 +1709,8 @@ class DateTime < Date # Day Number day 0. # # +sg+ specifies the Day of Calendar Reform. - def self.parse(str='-4712-01-01T00:00:00+00:00', hints={}, sg=ITALY) - elem = _parse(str, hints) + def self.parse(str='-4712-01-01T00:00:00+00:00', comp=true, sg=ITALY) + elem = _parse(str, comp) new_by_frags(elem, sg) end |