instance method
sec_fraction
Ruby on Rails 6.1.7.10
Since v4.2.9Signature
sec_fraction()
Returns the fraction of a second as a Rational
Time.new(2012, 8, 29, 0, 0, 0.5).sec_fraction # => (1/2)
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 108
def sec_fraction
subsec
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 108
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time