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)

 

Created in 2020 by Google Inc.