Creates a new DataAPITime
instance from various formats.
Optional
input: string | Date | DataAPITimeComponents & { The input to create the DataAPITime
from
Private
Readonly
#timeImplementation of $SerializeForTable
for TableCodec
Returns the DataAPITimeComponents that make up this DataAPITime
The components of the time
Converts this DataAPITime
to a Date
object
If no base
date/time is provided to use the date from, the date component is set to be the current date.
Optional
base: Date | DataAPIDate | DataAPITimestampThe base date/time to use for the date component
The Date
object representing this DataAPITime
Static
Private
#initStatic
[$Implementation of $DeserializeForTable
for TableCodec
Represents a
time
column for Data API tables.You may use the time function as a shorthand for creating a new
DataAPITime
.See the official DataStax documentation for more information.