method
_parse_year
ruby latest stable - Class:
Date
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.
_parse_year(str, e)private
No documentation available.
# File lib/date/format.rb, line 871
def self._parse_year(str, e) # :nodoc:
if str.sub!(/'(\d+)\b/, ' ')
e.year = $1.to_i
true
end
end Related methods
- Instance methods
- %
- *
- **
- +
- +@
- -
- -@
- /
- <<
- <=>
- ==
- ===
- >>
- _valid_civil?
- _valid_commercial?
- _valid_jd?
- _valid_nth_kday?
- _valid_ordinal?
- _valid_time?
- _valid_weeknum?
- abs
- ajd
- ajd_to_amjd
- ajd_to_jd
- amjd
- amjd_to_ajd
- asctime
- ceil
- civil_to_jd
- coerce
- commercial_to_jd
- ctime
- cwday
- cweek
- cwyear
- day
- day_fraction
- day_fraction_to_time
- div
- divmod
- downto
- england
- eql?
- find_fdom
- find_fdoy
- find_ldom
- find_ldoy
- floor
- gregorian
- gregorian?
- hash
- hour
- httpdate
- inspect
- integer?
- iso8601
- italy
- jd
- jd_to_ajd
- jd_to_civil
- jd_to_commercial
- jd_to_ld
- jd_to_mjd
- jd_to_nth_kday
- jd_to_ordinal
- jd_to_wday
- jd_to_weeknum
- jisx0301
- julian
- julian?
- ld
- ld_to_jd
- leap?
- marshal_dump
- marshal_load
- mday
- min
- minute
- mjd
- mjd_to_jd
- modulo
- mon
- month
- new_offset
- new_start
- next
- next_day
- next_month
- next_year
- nth_kday_to_jd
- offset
- ordinal_to_jd
- prev_day
- prev_month
- prev_year
- quo
- quotient
- quotrem
- remainder
- rfc2822
- rfc3339
- rfc822
- round
- sec
- sec_fraction
- second
- second_fraction
- start
- step
- strftime
- succ
- time_to_day_fraction
- to_c
- to_date
- to_datetime
- to_f
- to_i
- to_int
- to_json
- to_r
- to_s
- to_time
- truncate
- upto
- wday
- weeknum_to_jd
- xmlschema
- yday
- year
- zone
- zone_to_diff
- Class methods
- _httpdate
- _iso8601
- _jisx0301
- _parse
- _rfc2822
- _rfc3339
- _rfc822
- _strptime
- _xmlschema
- civil
- commercial
- gregorian_leap?
- httpdate
- iso8601
- jd
- jisx0301
- json_create
- julian_leap?
- leap?
- new
- new
- new!
- ordinal
- parse
- rfc2822
- rfc3339
- rfc822
- strptime
- today
- valid_civil?
- valid_commercial?
- valid_date?
- valid_jd?
- valid_ordinal?
- xmlschema
- Private methods
-
_parse_day -
_parse_ddd -
_parse_dot -
_parse_eu -
_parse_iso -
_parse_iso2 -
_parse_jis -
_parse_mday -
_parse_mon -
_parse_sla -
_parse_time -
_parse_us -
_parse_vms -
_parse_year -
_strptime_i -
complete_frags -
new_by_frags -
now -
nth_kday -
num_pattern? -
once -
rewrite_frags -
s3e -
valid_date_frags? -
valid_nth_kday? -
valid_time? -
valid_time_frags? -
valid_weeknum? -
weeknum -
civil -
commercial -
dx_addsub -
dx_conv0 -
dx_conv1 -
dx_muldiv -
emit -
emit_a -
emit_ad -
emit_au -
emit_n -
emit_sn -
emit_w -
emit_z -
fix_style -
nth_kday? -
ordinal -
time -
weeknum0 -
weeknum1 -
wnum0 -
wnum1