mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
updated to the new version (based on date2 3.2.1).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62f83f9f13
commit
dc9cd6a8c2
6 changed files with 903 additions and 346 deletions
|
@ -1,9 +1,9 @@
|
|||
#! /usr/bin/env ruby
|
||||
|
||||
# cal.rb: Written by Tadayoshi Funaba 1998-2000
|
||||
# $Id: cal.rb,v 1.11 2000-07-16 10:28:50+09 tadf Exp $
|
||||
# cal.rb: Written by Tadayoshi Funaba 1998-2002
|
||||
# $Id: cal.rb,v 2.3 2002-05-14 07:43:39+09 tadf Exp $
|
||||
|
||||
require 'date2'
|
||||
require 'date'
|
||||
require 'getopts'
|
||||
|
||||
$tab =
|
||||
|
@ -84,7 +84,7 @@ end
|
|||
|
||||
usage unless getopts('jmty', "c:#{$cc}")
|
||||
|
||||
y, m = ARGV.indexes(1, 0).compact.collect{|x| x.to_i}
|
||||
y, m = ARGV.select(1, 0).compact.collect{|x| x.to_i}
|
||||
$OPT_y ||= (y and not m)
|
||||
|
||||
to = Date.today
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue