instance method
nsec
Ruby on Rails 7.0.10
Since v4.0.13Signature
nsec()
Returns the fraction of a second as nanoseconds
Source
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 94
def nsec
(sec_fraction * 1_000_000_000).to_i
end
Defined in activesupport/lib/active_support/core_ext/date_time/conversions.rb line 94
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime