GetStamp 函数

GetStamp 函数返回与时间系列中所提供偏移量关联的时间戳记。偏移量可以是正整数或负整数。

语法

GetStamp(ts     TimeSeries, 
        offset integer) 
returns datetime year to fraction(5);
ts
源时间系列。
offset
偏移量。

描述

等效的 API 函数为 ts_time()

返回结果

在指定偏移量开始时间间隔的时间戳记。

示例

以下查询返回时间系列开头的时间戳记:
select GetStamp(stock_data,0)
   from daily_stocks
   where stock_name = 'GBase';