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