diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-22 11:22:03 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-22 11:22:03 +0000 |
commit | 3c5510565b4070ced940a29b90c79a1abe36a792 (patch) | |
tree | 86cdb28c0af95f80a643afc8df48a014e3c76d38 /lib/parsedate.rb | |
parent | fb00d61acf3e7f3c8c839f25c4a9c094349160f3 (diff) | |
download | ruby-3c5510565b4070ced940a29b90c79a1abe36a792.tar.gz |
* lib/date/format.rb (Date._parse): now accepts some new
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
Diffstat (limited to 'lib/parsedate.rb')
-rw-r--r-- | lib/parsedate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb index b52a79ba47..675096d9f2 100644 --- a/lib/parsedate.rb +++ b/lib/parsedate.rb @@ -43,8 +43,8 @@ module ParseDate # ParseDate.parsedate "Mon Dec 25 00 06:53:24 UTC", true # # => [2000, 12, 25, 6, 53, 24, "UTC", 1] # - def parsedate(str, comp=false) - Date._parse(str, comp). + def parsedate(str, hints={}) + Date._parse(str, hints). values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday) end |