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