PHP 8.2.31
Preview: time.rb Size: 188 B
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/optparse/time.rb

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

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
325 B lrw-r--r-- 2009-10-02 10:45:39
Edit Download
121 B lrw-r--r-- 2009-10-02 10:45:39
Edit Download
188 B lrw-r--r-- 2009-10-02 10:45:39
Edit Download
100 B lrw-r--r-- 2009-10-02 10:45:39
Edit Download
1.99 KB lrw-r--r-- 2009-10-02 10:45:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).