prg_date_to_string_convert()

Abstract

Converts a PrgT_Date object to string representation.

Syntax

prg_date_to_string_convert (date_time, string_format, options, date_time_string, buffer_len)
Argument Type Description
date_time PrgT_Date Date object to convert.
string_format PrgT_Date_String_Format Desired string format (see Details).
options int Unused.
date_time_string char * Buffer to hold converted string.
buffer_len int * Size of date_time_string buffer.
If date_time_string is too small to hold the converted string, this value is set to the required size and PrgC_Compcode_Failure is returned.

Return Type

PrgT_Compcode

PrgC_Compcode_Failure if inputs are not valid or buffer size is not sufficient; PrgC_Compcode_Success otherwise.

prg_date.h

Details

This function converts a PrgT_Date object to string representation.

The returned string represents the date and time in the same time zone as date_time; no time zone conversion is done.

string_format specifies the desired format of the string. This must be PrgC_Date_String_Format_Standard, which produces a string in the C standard format: “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