#include struct tm *cmostime; time_t *rawtime; time(&rawtime); cmostime = (struct tm*) gmtime(&rawtime); cts10_write( (int) 0x1B); cts10_write( (int) 0x17); cts10_write( (int) cmostime->tm_year / 10); cts10_write( (int) (cmostime->tm_year % 10));