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

# frozen_string_literal: false
require 'rubygems/optparse/lib/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-- 2024-06-26 13:55:21
Edit Download
398 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
561 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
179 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
251 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
158 B lrw-r--r-- 2024-06-26 13:55:21
Edit Download
2.02 KB lrw-r--r-- 2024-06-26 13:55:21
Edit Download

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