Method: Time#sec_fraction

Defined in:
lib/active_support/core_ext/time/calculations.rb

#sec_fractionObject

Returns the fraction of a second as a Rational

Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2)


107
108
109
# File 'lib/active_support/core_ext/time/calculations.rb', line 107

def sec_fraction
  subsec
end