Sha256: bf1490def5f414ba5dedb24cea0f1d6b20ececcacec8883f0c2a997dc3bedf45

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

class Time

  unless 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

7 entries across 7 versions & 2 rubygems

Version Path
facets-2.6.0 lib/core/facets/time/to_time.rb
facets-2.4.4 lib/core/facets/time/to_time.rb
facets-2.5.0 lib/core/facets/time/to_time.rb
facets-2.4.5 lib/core/facets/time/to_time.rb
facets-2.5.1 lib/core/facets/time/to_time.rb
facets-2.5.2 lib/core/facets/time/to_time.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/time/to_time.rb