root/platform/tdiary/plugin/jmonth.rb @ 4634

Revision 4634, 0.7 kB (checked in by hsbt, 5 years ago)

platform/tdiary/lib,plugin: import form official repos.

Line 
1# jmonth.rb $Revision: 1.1 $
2#
3#��i�פ��α�������
4#    plugin�������������롣
5#    ���ե����ޥåȤʤɤǡ�i�פ�ꤹ��������������ˤʤ�
6# Copyright (c) 2005 sasasin/SuzukiShinnosuke<sasasin@sasasin.sytes.net>
7# You can distribute this file under the GPL.
8#
9unless Time::new.respond_to?( :strftime_jmonth_backup ) then
10        eval( <<-MODIFY_CLASS, TOPLEVEL_BINDING )
11                class Time
12                   alias strftime_jmonth_backup strftime
13                   JMONTH = %w(������� �������������շ�����������           def strftime( format )
14                      strftime_jmonth_backup( format.gsub( /%i/, JMONTH[self.month-1] ) )
15                   end
16                end
17        MODIFY_CLASS
18end
Note: See TracBrowser for help on using the browser.