Crysda::DateTimeCol
Inherits Crysda::DataCol / Struct / Value / Object
=========================================================================== DateTime Column - stores Time values with optimized internal storage
Constants
DATETIME_FORMATS = ["%Y-%m-%d %H:%M:%S", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%dT%H:%M:%SZ", "%Y-%m-%d %H:%M", "%Y-%m-%d", "%d/%m/%Y %H:%M:%S", "%d/%m/%Y", "%m/%d/%Y %H:%M:%S", "%m/%d/%Y", "%Y%m%d"]
Second-level date/time formats for parsing
DATETIME_MS_FORMATS = ["%Y-%m-%d %H:%M:%S.%L", "%Y-%m-%dT%H:%M:%S.%L", "%Y-%m-%dT%H:%M:%S.%LZ", "%d/%m/%Y %H:%M:%S.%L", "%m/%d/%Y %H:%M:%S.%L"]
Millisecond-level formats (extends DATETIME_FORMATS with %L)
Constructors
Create from array of epoch seconds (converts to milliseconds internally)
Create from array of epoch milliseconds
Instance methods
each_non_null
Sourceeach_with_index
Sourcehas_nulls?
Sourcevalues
Source