Sha256: 8f20b68d450a725a5e54ee433a8f5c94f622e5a15f3c01ff65b8a87d03db3e51

Contents?: true

Size: 440 Bytes

Versions: 42

Compression:

Stored size: 440 Bytes

Contents

require 'Calendar.rb'
require 'date'
unless Time::new.respond_to?( :strftime_holiday_backup )
then
 eval( <<-MODIFY_CLASS, TOPLEVEL_BINDING )
  class Time
   alias strftime_holiday_backup strftime
   def strftime( format )
    holiday = ""
    day = Day.new(self.day,self.month,self.year,self.wday)
    holiday = day.holiday_name_jp if day.holiday?
    strftime_holiday_backup( format.gsub( /%K/, holiday ) )
   end
  end
 MODIFY_CLASS
end

Version data entries

42 entries across 37 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/jholiday.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/jholiday.rb
tdiary-contrib-5.1.4 plugin/jholiday.rb
tdiary-contrib-5.1.3 plugin/jholiday.rb
tdiary-contrib-5.1.2 plugin/jholiday.rb
tdiary-contrib-5.1.1 plugin/jholiday.rb
tdiary-contrib-5.1.0 plugin/jholiday.rb
tdiary-contrib-5.0.13 plugin/jholiday.rb
tdiary-contrib-5.0.12 plugin/jholiday.rb
tdiary-contrib-5.0.11 plugin/jholiday.rb
tdiary-contrib-5.0.10 plugin/jholiday.rb
tdiary-contrib-5.0.9 plugin/jholiday.rb
tdiary-contrib-5.0.8 plugin/jholiday.rb
tdiary-contrib-5.0.7 plugin/jholiday.rb
tdiary-contrib-5.0.6 plugin/jholiday.rb
tdiary-contrib-5.0.5 plugin/jholiday.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-fa9c20aa0d97/plugin/jholiday.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-f08988dfa0f6/plugin/jholiday.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-a3c5f37278c4/plugin/jholiday.rb
tdiary-5.0.5 vendor/bundle/bundler/gems/tdiary-contrib-8299b30cbf3f/plugin/jholiday.rb