method

_parse_eu

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: Date
_parse_eu(str, e) private

def self._parse_beat(str, e) # :nodoc:

if str.sub!(/@\s*(\d+)(?:[,.](\d*))?/, ' ')
  beat = Rational($1.to_i)
  beat += Rational($2.to_i, 10**$2.size) if $2
  secs = Rational(beat, 1000)
  h, min, s, fr = self.day_fraction_to_time(secs)
  e.hour = h
  e.min = min
  e.sec = s
  e.sec_fraction = fr * 86400
  e.zone = '+01:00'
  true
end

end

Show source
Register or log in to add new notes.