PHP 8.2.31
Preview: time.rb Size: 241 B
//proc/thread-self/root/opt/alt/ruby32/share/rubygems/rubygems/optparse/lib/optparse/time.rb

# frozen_string_literal: false
require_relative '../optparse'
require 'time'

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

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.54 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download
388 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
551 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
169 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
241 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
148 B lrw-r--r-- 2026-04-07 14:12:59
Edit Download
2.02 KB lrw-r--r-- 2026-04-07 14:12:59
Edit Download

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