Sha256: 399fba2c941287bf6e6a78d9126172fe7348efff6976c840922d9b349a4a740b

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

class Date
  def chinese_format
    self.strftime("%Y-%-m-%-d 00:00:00")
  end

  def chinese_format_day
    self.strftime("%Y-%-m-%-d")
  end

  def chinese_week_day
    cwdays = %w{星期一 星期二 星期三 星期四 星期五 星期六 星期日}
    cwdays[self.cwday-1]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eric_tools-0.0.7 lib/eric_tools/date.rb
eric_tools-0.0.6 lib/eric_tools/date.rb
eric_tools-0.0.5 lib/eric_tools/date.rb
eric_tools-0.0.4 lib/eric_tools/date.rb