class DateTime

Public Instance Methods

chinese_format() click to toggle source
# File lib/eric_tools/date_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/date_time.rb, line 6
def chinese_format_day
  self.strftime("%Y-%-m-%-d")
end