Date/Time Types

There are three categories of date/time data types supported in both SQL and natively via API:

  • Date
  • Time
  • Timestamp

Support for the timestamp type comes in two flavors, depending on whether the data being ingested into Kinetica is numeric (milliseconds since the Epoch) or string (date/time literal). Once ingested, both of these types and stored and processed in the same way.

SQL Date/Time Column Types

Data TypeBytesMinimum ValueMaximum ValueFormat
DATE41000-01-012900-12-31YYYY-[M]M-[D]D
1000-01-012900-12-31
DATETIME81000-01-01 00:00:00.0002900-12-31 23:59:59.999YYYY-[M]M-[D]D [H]H24:MI:SS[.mmm]
9999-01-01 00:00:00.0009999-12-31 23:59:59.999
TIME400:00:00.00023:59:59.999[H]H24:MI:SS[.mmm]
TIMESTAMP8

-30610224000000

(1/1/1000 00:00:00.000)

29379542399999

(12/31/2900 23:59:59.999)

Milliseconds since

January 1, 1970 00:00:00

Native Date/Time Column Types

Data TypeColumn PropertyBase TypeBytesMinimum ValueMaximum ValueFormat
datedatestring41000-01-012900-12-31YYYY-[M]M-[D]D
9999-01-019999-12-31
datetimedatetime81000-01-01 00:00:00.0002900-12-31 23:59:59.999

YYYY-[M]M-[D]D

[H]H24:MI:SS[.mmm]

9999-01-01 00:00:00.0009999-12-31 23:59:59.999
timetime400:00:00.00023:59:59.999[H]H24:MI:SS[.mmm]
timestamptimestamplong8

-30610224000000

(1/1/1000 00:00:00.000)

29379542399999

(12/31/2900 23:59:59.999)

Milliseconds since

January 1, 1970 00:00:00