Class: DateTime
- Inherits:
-
Date
show all
- Defined in:
- lib/framework/autocomplete/DateTime.rb,
lib/framework/dateME.rb,
lib/framework/date/format.rb
Overview
It is auto-generated content. Do not do required for this file in your application.
Defined Under Namespace
Modules: Format
Constant Summary
Constants inherited
from Date
Date::ABBR_DAYNAMES, Date::ABBR_MONTHNAMES, Date::DATE_FORMATS, Date::DAYNAMES, Date::MONTHNAMES, Date::SECONDS_IN_DAY
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Date
#+, #-, #_get_date, _httpdate, _iso8601, _jisx0301, _parse, _rfc2822, _rfc3339, _rfc822, _xmlschema, #asctime, civil, #ctime, #cwday, #day, #httpdate, #old_strftime, #rfc2822, #rfc822, strptime, #to_date, #to_formatted_s, #to_s, #to_time, today
Constructor Details
#initialize(time) ⇒ DateTime
Returns a new instance of DateTime.
211
212
213
|
# File 'lib/framework/dateME.rb', line 211
def initialize( time )
@m_time = time
end
|
Class Method Details
._strptime(str, fmt) ⇒ Object
1289
1290
1291
|
# File 'lib/framework/date/format.rb', line 1289
def self._strptime(str, fmt='%FT%T%z')
super(str, fmt)
end
|
Instance Method Details
204
|
# File 'lib/framework/dateME.rb', line 204
def hour() @m_time.hour end
|
#iso8601(n) ⇒ Object
1305
1306
1307
|
# File 'lib/framework/date/format.rb', line 1305
def iso8601(n=0)
super() + iso8601_timediv(n)
end
|
#jisx0301(n) ⇒ Object
1313
1314
1315
|
# File 'lib/framework/date/format.rb', line 1313
def jisx0301(n=0)
super() + iso8601_timediv(n)
end
|
203
|
# File 'lib/framework/dateME.rb', line 203
def mday() @m_time.mday end
|
205
|
# File 'lib/framework/dateME.rb', line 205
def min() @m_time.min end
|
201
|
# File 'lib/framework/dateME.rb', line 201
def mon() @m_time.mon end
|
207
208
209
|
# File 'lib/framework/dateME.rb', line 207
def offset()
of = Rational(@m_time.gmt_offset() || 0, 86400)
end
|
#rfc3339(n) ⇒ Object
1309
|
# File 'lib/framework/date/format.rb', line 1309
def rfc3339(n=0) iso8601(n) end
|
206
|
# File 'lib/framework/dateME.rb', line 206
def sec() @m_time.sec end
|
#strftime(fmt) ⇒ Object
1285
1286
1287
|
# File 'lib/framework/date/format.rb', line 1285
def strftime(fmt='%FT%T%:z')
super(fmt)
end
|
#to_datetime ⇒ Object
215
|
# File 'lib/framework/dateME.rb', line 215
def to_datetime() self end
|
200
|
# File 'lib/framework/dateME.rb', line 200
def wday() @m_time.wday end
|
#xmlschema(n) ⇒ Object
1311
|
# File 'lib/framework/date/format.rb', line 1311
def xmlschema(n=0) iso8601(n) end
|
202
|
# File 'lib/framework/dateME.rb', line 202
def year() @m_time.year end
|