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.
Header
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”.