repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fix up Rubinius specific library specs.
[rbx.git]
/
lib
/
optparse
/
time.rb
blob
402cadcf167eabac1ff0b1182aa54c6fff598579
1
require 'optparse'
2
require 'time'
3
4
OptionParser.accept(Time) do |s,|
5
begin
6
(Time.httpdate(s) rescue Time.parse(s)) if s
7
rescue
8
raise OptionParser::InvalidArgument, s
9
end
10
end