PHP 8.2.31
Preview: time.rb Size: 241 B
//proc/thread-self/root/opt/alt/ruby40/share/rubygems/rubygems/vendor/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
2.00 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
388 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
721 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
169 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
241 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
184 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.15 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download

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