class Time

Public Instance Methods

to_date1() click to toggle source
# File lib/zbox/ext/time.rb, line 6
def to_date1
        year=self.year
        month=self.month
        day=self.day
  year.to_s+"年"+month.to_s+"月"+day.to_s+"日"
end
to_date2() click to toggle source
# File lib/zbox/ext/time.rb, line 13
def to_date2
        year=self.year
        month=self.month
        day=self.day
  year.to_s+"-"+month.to_s+"-"+day.to_s
end
to_fmt1() click to toggle source
# File lib/zbox/ext/time.rb, line 2
def to_fmt1
 strftime("%Y-%m-%d %H:%M") 
end