define DDATE_NO_MAIN to omit the main function