Flowdock
method

_parse_eu

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - 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_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.