method
sec_fraction
v7.0.0 -
Show latest stable
- Class:
Time
sec_fraction()public
Returns the fraction of a second as a Rational
Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2)
sec_fraction()Returns the fraction of a second as a Rational
Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2)