Sha256: 7e943306a1239a2a1139e87217a452962fcdb0e1634e1ee0b09b3d6c9c80d6dd

Contents?: true

Size: 361 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
facets-2.8.4 lib/core/facets/time/to_time.rb
facets-2.8.3 lib/core/facets/time/to_time.rb
facets-2.8.2 lib/core/facets/time/to_time.rb
facets-2.8.1 lib/core/facets/time/to_time.rb
facets-2.8.0 lib/core/facets/time/to_time.rb
facets-2.7.0 lib/core/facets/time/to_time.rb