PHP 8.2.31
Preview: time.rb Size: 188 B
/proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/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-- 2007-02-12 23:01:19
Edit Download
121 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
188 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
100 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download
1.98 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download

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