ts_cal_index() 函数

ts_cal_index() 函数返回日历中两个给定时间戳记之间的有效时间间隔数。

语法

mi_integer *
ts_cal_index (MI_CONNECTION *conn, 
              mi_string     *cal_name, 
              mi_datetime   *begin_stamp, 
              mi_datetime   *end_stamp)
conn
有效的 DataBlade API 连接。
cal_name
日历的名称。
begin_stamp
开始时间戳记。begin_stamp 不能早于日历原点。
end_stamp
begin_stamp 开始确定偏移量的时间戳记。此时间戳记可早于 begin_stamp

描述

等效 SQL 函数是 CalIndex

返回结果

给定日历中两个时间戳记之间的有效时间间隔数。如果 end_stamp 早于 begin_stamp,那么结果为负数。