1
# jdate.rb $Revision: 1.1 $
5
# 日付フォーマットなどで「%J」を指定するとそこが日本語の曜日になる
7
# Copyright (c) 2003 TADA Tadashi <sho@spc.gr.jp>
8
# You can distribute this file under the GPL.
10
unless Time::new.respond_to?( :strftime_jdate_backup ) then
11
eval( <<-MODIFY_CLASS, TOPLEVEL_BINDING )
13
alias strftime_jdate_backup strftime
14
JWDAY = %w(日 月 火 水 木 金 土)
15
def strftime( format )
16
strftime_jdate_backup( format.gsub( /%J/, JWDAY[self.wday] ) )