method
_strptime
_strptime(str, fmt='%F')
public
Hide source
# File lib/date/format.rb, line 574 def self._strptime(str, fmt='%F') str = str.dup e = Format::Bag.new return unless _strptime_i(str, fmt, e) if e._cent if e.cwyear e.cwyear += e._cent * 100 end if e.year e. year += e._cent * 100 end end if e._merid if e.hour e.hour = 12 e.hour += e._merid end end unless str.empty? e.leftover = str end e.to_hash end