prg_date_from_string_convert()

摘要

将日期的字符串表示转换为 PrgT_Date。

语法

prg_date_from_string_convert (date_time_string, string_format, options, date_time_ptr)
参数 类型 说明
date_time_string const char * 待转换的日期字符串(不能为空)。
string_format PrgT_Date_String_Format date_time_string 的格式(参见详情)。
options int 未使用。
date_time_ptr PrgT_Date * 接收转换后日期的对象(不能为 NULL)。

返回类型

PrgT_Compcode

转换成功时返回 PrgC_Compcode_Success;否则返回 PrgC_Compcode_Failure。

头文件

prg_date.h

详情

该函数将日期的字符串表示转换为 PrgT_Date 对象。

string_format 指定字符串的格式。该值必须是 PrgC_Date_String_Format_Standard,即 C 标准格式的字符串:“12:34:56.789 Mar 19 2008”。

日期和时间按本地时区处理;不做时区转换。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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