class Time
Public Instance Methods
chinese_format()
click to toggle source
# File lib/eric_tools/time.rb, line 2 def chinese_format self.strftime("%Y-%-m-%-d %H:%M:%S") end
chinese_format_day()
click to toggle source
# File lib/eric_tools/time.rb, line 6 def chinese_format_day self.strftime("%Y-%-m-%-d") end
chinese_week_day()
click to toggle source
# File lib/eric_tools/time.rb, line 10 def chinese_week_day self.to_date.chinese_week_day end