edmiGetDate

EdmiError edmiGetDate(EdmiPackedDate *packedDate,
                       EdmiDate       *date, 
                       EdmiStringDate *stringDate, 
                       SdaiInteger    stringFormat);

Returns the current time and date in various formats. The current time and date is provided by the EDMserver to facilitate a synchronous time and date for all EDMserver clients.

Arguments


TypeNameComment
EdmiPackedDatepackedDateAddress of a variable that will receive the current time and date in an EdmiPackedDate format. The date from January 1, 1990 to December 31, 2053 can be represented in this format.
EdmiDate

date

Address of a variable that will receive the address of the current time and date in EdmiDate format. The actual data is located in a buffer in EDMinterface that can be overwritten in the next EDMinterface call.

EdmiStringDate

stringDate

Address of a variable that will receive the address of the current time and date in a string format. The actual string is located in a buffer in EDMinterface that can be overwritten in the next EDMinterface call.
NOTE: The <stringDate> is using a static buffer and must not be freed by edmiFree.

SdaiInteger

stringFormat

Dummy. Not yet used.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 EdmiError rstat;
 EdmiPackedDate packedDate;
 EdmiStringDate stringDate;
 EdmiDate date;
 . . .
 if (rstat = edmiGetDate (&packedDate, &date, &stringDate, 0)) {
 /* Error in operation */ 
 printf("\nError: %s in edmiGetDate\n", 
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 printf("\nDate: %s", stringDate);
 . . . 

 

See also

Filter by label

There are no items with the selected labels at this time.

Â