String
ISO 8601 Date and Time Representation
see xml schema
When Standard Representation 形式の表現を分解してArray化する
date_time : String
日時を表現する When Standard Representation 形式の文字列
options : Hash
:era_name - String or [String, Integer]
デフォルトの年号(Integerは0年に対応する通年)
:abbreviation - [Numeric]
上位省略形式で使用する上位部分
returns : [format, date, time, clock, era]
format : Symbol or nil
nil - 通常形式
:century - 世紀指定形式 ('CC', '+CCCC', '-CCCC')
:day - 年間通算日形式 ('YYDDD'など)
:week - 暦週形式 ('YYWNN'など)
date : [Numeric]
日付部分
time : [Numeric]
時刻部分
clock : String
時間帯
era : String or [String, Integer]
年号(Integerは0年に対応する通年)
# File when/basictypes.rb, line 49
49: def _to_array(date_time, options={})
50: raise TypeError, "Argument is not ISO 8601 String" unless date_time.kind_of?(String)
51: date_time = date_time.gsub(/_+/, '')
52: begin
53: return _to_array_basic(date_time, options)
54: rescue ArgumentError
55: return _to_array_extended(date_time, options)
56: end
57: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.