prg_date_interval_offset_add()
摘要
向 PrgT_Date 对象加上以时间间隔指定的偏移量。
语法
prg_date_interval_offset_add (start_date_time, offset_seconds, new_date_time_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
start_date_time |
PrgT_Date |
原始时间。 |
num_intervals |
double |
偏移量中的间隔数。 |
type |
PrgT_Date_Interval_Type |
所用时间间隔的类型;为表 1所列符号常量之一。 |
new_date_time_ptr |
PrgT_Date * |
用于保存新时间的区域。 |
返回类型
PrgT_Compcode
若 new_date_time_ptr 为 NIL 或新时间小于 0.0,返回 PrgC_Compcode_Failure;否则返回 PrgC_Compcode_Success。
头文件
prg_date.h
详情
若要加上以秒为单位的偏移量,请使用 prg_date_offset_add()。