class Date
Public Instance Methods
chinese_format()
click to toggle source
# File lib/eric_tools/date.rb, line 2 def chinese_format self.strftime("%Y-%-m-%-d 00:00:00") end
chinese_format_day()
click to toggle source
# File lib/eric_tools/date.rb, line 6 def chinese_format_day self.strftime("%Y-%-m-%-d") end
chinese_week_day()
click to toggle source
# File lib/eric_tools/date.rb, line 10 def chinese_week_day cwdays = %w{星期一 星期二 星期三 星期四 星期五 星期六 星期日} cwdays[self.cwday-1] end