Class: CassandraCQL::Types::DateType

Inherits:
AbstractType show all
Defined in:
lib/cassandra-cql/types/date_type.rb

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



20
21
22
# File 'lib/cassandra-cql/types/date_type.rb', line 20

def self.cast(value)
  Time.at(bytes_to_long(value) / 1000.0)
end