Class: Date
- Inherits:
-
Object
- Object
- Date
- Defined in:
- lib/eric_tools/date.rb
Instance Method Summary collapse
Instance Method Details
#chinese_format ⇒ Object
2 3 4 |
# File 'lib/eric_tools/date.rb', line 2 def chinese_format self.strftime("%Y-%-m-%-d 00:00:00") end |
#chinese_format_day ⇒ Object
6 7 8 |
# File 'lib/eric_tools/date.rb', line 6 def chinese_format_day self.strftime("%Y-%-m-%-d") end |
#chinese_week_day ⇒ Object
10 11 12 13 |
# File 'lib/eric_tools/date.rb', line 10 def chinese_week_day cwdays = %w{星期一 星期二 星期三 星期四 星期五 星期六 星期日} cwdays[self.cwday-1] end |