Class: DateTimeME
Constant Summary
Constants inherited
from Date
Date::ABBR_DAYNAMES, Date::ABBR_MONTHNAMES, Date::DAYNAMES, Date::ENGLAND, Date::GREGORIAN, Date::ITALY, Date::JULIAN, Date::MONTHNAMES, Date::UNIXEPOCH
Instance Method Summary
collapse
Methods inherited from Date
#+, #-, #<<, #<=>, #===, #>>, _httpdate, _iso8601, _jisx0301, _parse, _rfc2822, _rfc3339, _strptime, _xmlschema, #ajd, #amjd, #asctime, civil, commercial, #cwday, #cweek, #cwyear, #day_fraction, #downto, #england, #eql?, #gregorian, #gregorian?, gregorian_leap?, #hash, httpdate, #httpdate, #inspect, iso8601, #iso8601, #italy, #jd, jd, jisx0301, #jisx0301, #julian, #julian?, julian_leap?, #ld, #leap?, #marshal_dump, #marshal_load, #mjd, new, #new_start, #next, #next_day, #next_month, #next_year, once, ordinal, parse, #prev_day, #prev_month, #prev_year, rfc2822, #rfc2822, rfc3339, #rfc3339, rfc822, #start, #step, #strftime, strptime, #to_date, #to_datetime, #to_s, #to_time, today, #upto, valid_civil?, valid_commercial?, valid_jd?, valid_ordinal?, xmlschema, #xmlschema, #yday
Methods included from Comparable
#<, #<=, #==, #>, #>=, #between?
Constructor Details
Returns a new instance of DateTimeME.
20
21
22
|
# File 'lib/dateME.rb', line 20
def initialize( time )
@m_time = time
end
|
Instance Method Details
16
|
# File 'lib/dateME.rb', line 16
def hour() @m_time.hour end
|
15
|
# File 'lib/dateME.rb', line 15
def mday() @m_time.mday end
|
17
|
# File 'lib/dateME.rb', line 17
def min() @m_time.min end
|
13
|
# File 'lib/dateME.rb', line 13
def mon() @m_time.mon end
|
18
|
# File 'lib/dateME.rb', line 18
def sec() @m_time.sec end
|
12
|
# File 'lib/dateME.rb', line 12
def wday() @m_time.wday end
|
14
|
# File 'lib/dateME.rb', line 14
def year() @m_time.year end
|