Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/eric_tools/time.rb
Instance Method Summary collapse
Instance Method Details
#chinese_format ⇒ Object
2 3 4 |
# File 'lib/eric_tools/time.rb', line 2 def chinese_format self.strftime("%Y-%-m-%-d %H:%M:%S") end |
#chinese_format_day ⇒ Object
6 7 8 |
# File 'lib/eric_tools/time.rb', line 6 def chinese_format_day self.strftime("%Y-%-m-%-d") end |
#chinese_week_day ⇒ Object
10 11 12 |
# File 'lib/eric_tools/time.rb', line 10 def chinese_week_day self.to_date.chinese_week_day end |