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
Type | Name | Comment |
EdmiPackedDate | packedDate | Address 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. |
SdaiInteger | stringFormat | Dummy. Not yet used. |
Return Value
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.
Â