Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Converts the specified time and date in EdmiStringDate format to EdmiDate and EdmiPackedDate formats.
Related functions: edmiGetPackedDate , edmiPackDate , edmiUnpackDate , edmiGetDate .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiStringToDate(EdmiStringDate stringDate,
                            EdmiPackedDate *packedDate, 
                            EdmiDate       *date); 
Arguments:

stringDate

The specified time and date in EdmiStringDate format to be converted.

packedDate

Address of the variable that will receive the specified time and date in EdmiPackedDate format.

date

Address of a variable of type EdmiDate that will receive the specified time and date in EdmiDate format.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
EdmiStringDate stringDate;
EdmiPackedDate packedDate;
EdmiDate date;
...
if (rstat = edmiStringToDate (stringDate, &packedDate, &date)) {
/* Error in operation */  
printf("\nError in edmiStringToDate: %s", 
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels