_CP_date is equivalent to the result = date() BASIC statement.
int _CP_date(int* result)
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
/* Prints the numeric date */ int i; _CP_date(&i); _CP_unix_env(); printf("%d\n",i);