class method self.string_to_time

Ruby on Rails 2.3.18

Last seen in v3.0.20

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

Signature

self.string_to_time(string)

No documentation comment.

Parameters

string req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 132
        def string_to_time(string)
          return string unless string.is_a?(String)
          return nil if string.empty?

          fast_string_to_time(string) || fallback_string_to_time(string)
        end

Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 132 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::Column

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close