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()。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com