
PT-20 Programming Guide
int set_time(char *new_time);
set_time(“20030401223035”);
The set_time function set a new system date and time specified in the
argument new_time to the calendar chip. The character string
new_time must have the following format,
Ps. When it execute in simulator, the time will not change.
Normally the set_time function always returns an integer value of 1. If the
calendar chip malfunctions, the set_time function will then return 0 to 0
error. Also, if the format is illegal (e.g. set hour to 25), the operation is
simply denied and the time is not changed.
Komentarze do niniejszej Instrukcji