Sha256: 05e0d8f0317f1542a417fd3e05c0d0d510e5fb7d37909bfe5570e83d613ec674

Contents?: true

Size: 400 Bytes

Versions: 17

Compression:

Stored size: 400 Bytes

Contents

require 'date/format'

class Time

  def strftime(fmt='%F')
    DateTimeME.new(self).strftime(fmt);
  end
end

class DateTimeME < Date

  def wday() @m_time.wday end
  def mon() @m_time.mon end
  def year() @m_time.year end
  def mday() @m_time.mday end
  def hour() @m_time.hour end
  def min() @m_time.min end
  def sec() @m_time.sec end
  
  def initialize( time )
    @m_time = time
  end
  
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-0.2.4 lib/dateME.rb
rhodes-0.2.5 lib/dateME.rb
rhodes-0.2.6 lib/dateME.rb
rhodes-0.3.0 lib/dateME.rb
rhodes-framework-1.0.1 lib/dateME.rb
rhodes-framework-1.0.0 lib/dateME.rb
rhodes-framework-1.0.4 lib/dateME.rb
rhodes-framework-1.0.10 lib/dateME.rb
rhodes-framework-1.0.5 lib/dateME.rb
rhodes-framework-1.0.3 lib/dateME.rb
rhodes-framework-1.0.2 lib/dateME.rb
rhodes-framework-1.0.8 lib/dateME.rb
rhodes-framework-1.0.6 lib/dateME.rb
rhodes-framework-1.0.7 lib/dateME.rb
rhodes-framework-1.0.9 lib/dateME.rb
rhodes-framework-1.1.0 lib/dateME.rb
rhodes-framework-1.1.1 lib/dateME.rb