/
TimestampFromTime function
TimestampFromTime function
Returns a timestamp from the given time and timestamp objects. The value in the time object overwrites the time value in the timestamp object so that only the date part is used from the timestamp.
Namespace
datetime
Input
time(time
|string
), timestamp(timestamp
|string
)
Output
timestamp(timestamp
)
Example
If basetime
contains the time 12:03:22
and basetimestamp
contains the timestamp 2008–08–18 22:30:52
, then the two following functions are equivalent, and return the time stamp 2008–08–18 12:03:22
set-column result datetime:TimestampFromTime('12:03:22', '2008–08–18 22:30:52')
set-column result datetime:TimestampFromTime(basetime, basetimestamp)
Related content
Converting Timestamp types to Date in Wrangler
Converting Timestamp types to Date in Wrangler
Read with this
TimestampFromDateTime function
TimestampFromDateTime function
More like this
Set Column directive
Set Column directive
Read with this
TimestampFromSecondsSince function
TimestampFromSecondsSince function
More like this
TimestampFromEpoch function
TimestampFromEpoch function
More like this
TimestampOffsetBySeconds function
TimestampOffsetBySeconds function
More like this
Created in 2020 by Google Inc.