class method
self.microseconds
Ruby on Rails 3.0.20
Since v2.2.3 Last seen in v3.0.20Signature
self.microseconds(time)
‘0.123456’ -> 123456 ‘1.123456’ -> 123456
Parameters
-
timereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 175
def microseconds(time)
((time[:sec_fraction].to_f % 1) * 1_000_000).to_i
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 175
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Column