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 a local time and date from EdmiDate format to EdmiPackedDate format.
The date from January 1, 1990 to December 31, 2053 can be represented in EdmiPackedDate format.
Related functions: edmiStringToDate ,edmiGetPackedDate , edmiUnpackDate , and edmiGetDate .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiPackLocalDate(EdmiDate       *date,
                             EdmiPackedDate *packedDate); 
Arguments:

date

Address of the EdmiDate format data structure to be packed.

packedDate

Address of the variable that will receive the given <date> in EdmiPackedDate format. EdmiPackedDate may represent dates between January 1st, 1990 and December 31st 2053.

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;
EdmiDate date;
EdmiPackedDate packedDate;
. . .
if (rstat = edmiPackLocalDate (&date, &packedDate)) {
/* Error in operation */ 
printf("\nError: %s in edmiPackLocalDate \n",
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels