Sha256: 1edde8fab44fc9526bcf5348428d13c93df54dd3d1e630da56418ae3e8d68b7f

Contents?: true

Size: 188 Bytes

Versions: 84

Compression:

Stored size: 188 Bytes

Contents

require 'optparse'
require 'time'

OptionParser.accept(Time) do |s,|
  begin
    (Time.httpdate(s) rescue Time.parse(s)) if s
  rescue
    raise OptionParser::InvalidArgument, s
  end
end

Version data entries

84 entries across 56 versions & 7 rubygems

Version Path
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/gems/2.2.0/gems/second_step-0.1.1/secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/2.2.0/optparse/time.rb
second_step-0.1.2 secondstep-notify-1.0.0-osx/lib/ruby/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.60 bin/traveling-ruby-2.2.2/osx/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.60 bin/traveling-ruby-2.2.2/l32/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.60 bin/traveling-ruby-2.2.2/l64/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.60 bin/traveling-ruby-2.2.2/win/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.58 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.57 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.56 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.55 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.54 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.53 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.52 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.51 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.50 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.49 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.47 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.46 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.45 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb
rb2exe-0.1.44 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/optparse/time.rb