TimestampFromEpoch function

Returns a time stamp from the given UNIX epoch time.

Namespace

datetime

Input

seconds(int|string), base timestamp(timestamp|string)

Output

timestamp(timestamp)

Example

If seconds contains the value 2563 and basetimestamp contains the timestamp 2008–08–18 22:30:52, then the two following functions are equivalent, and return the timestamp 2008–08–18 23:13:35

set-column result datetime:TimestampFromSecondsSince(2563, '2008–08–18 22:30:52') set-column result datetime:TimestampFromSecondsSince('2563', '2008–08–18 22:30:52') set-column result datetime:TimestampFromSecondsSince(seconds, basetimestamp)

 

Created in 2020 by Google Inc.