summaryrefslogtreecommitdiff
path: root/lib/parsedate.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-25 23:09:30 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-25 23:09:30 +0000
commit0384b2330ca1b8461c86b9cd2ddae234f75c8417 (patch)
tree114affc88905223160eb13b64e595dec750937fb /lib/parsedate.rb
parent9b4bc065feec2175237a857c1440e94f8a8499f0 (diff)
downloadruby-0384b2330ca1b8461c86b9cd2ddae234f75c8417.tar.gz
updated based on date2 3.8.2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/parsedate.rb')
-rw-r--r--lib/parsedate.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb
index 39b5e7fa1e..405ab46907 100644
--- a/lib/parsedate.rb
+++ b/lib/parsedate.rb
@@ -10,12 +10,6 @@ module ParseDate
values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
end
+ module_function :parsedate
- def strptime(str, format)
- d = Date._strptime(str, format)
- raise ArgumentError, "invalid strptime format - `#{format}'" unless d
- d.values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
- end
-
- module_function :parsedate, :strptime
end