class method self.microseconds

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v3.0.20

Available in: v2.2.3 v2.3.18 v3.0.20

Signature

self.microseconds(time)

‘0.123456’ -> 123456 ‘1.123456’ -> 123456

Parameters

time req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 172
          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 172 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::Column

Type at least 2 characters to search.

↑↓ navigate · open · esc close