Sha256: f65188d554c1db2c86d7e870def16bab62f6f8aca31759a0bc55b64f5ef05361

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

class Time

  unless method_defined?(:to_time) # 1.9

    # To be able to keep Dates and Times interchangeable
    # on conversions.

    def to_time
      getlocal 
    end

    # A method to keep Time, Date and DateTime instances interchangeable
    # on conversions. In this case, it simply returns +self+.
    #def to_time
    #  self
    #end

  end

end

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/time/to_time.rb
facets-3.1.0 lib/core/facets/time/to_time.rb
facets-3.0.0 lib/core/facets/time/to_time.rb
facets-2.9.3 lib/core/facets/time/to_time.rb
facets-2.9.2 lib/core/facets/time/to_time.rb
facets-2.9.2 src/core/facets/time/to_time.rb
facets-2.9.1 lib/core/facets/time/to_time.rb
facets-2.9.0 lib/core/facets/time/to_time.rb
facets-2.9.0.pre.2 lib/core/facets/time/to_time.rb
facets-2.9.0.pre.1 lib/core/facets/time/to_time.rb