_CP_timedate is equivalent to the result = timedate() BASIC statement.
int _CP_timedate(CPSTR** result)
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
/* Prints the date and time. */ CPSTR * s = _CP_str_null; _CP_timedate(&s); _CP_print(s);