#include <qlib.h>
#include <stdio.h>
#include <dos.h>
struct time t1,t2={59,11,99,59};
struct date d1,d2={1980,24,12};
void main(void) {
gettime(&t1);
getdate(&d1);
printf("The date is:%d/%d/%d\n",d1.da_mon,d1.da_day,d1.da_year);
printf("The time is:%d:%d:%d.%d\n",t1.ti_hour,t1.ti_min,t1.ti_sec,t1.ti_hund);
settime(&t2);
setdate(&d2);
printf("Time changed!\n");
printf("The date is:%d/%d/%d\n",d2.da_mon,d2.da_day,d2.da_year);
printf("The time is:%d:%d:%d.%d\n",t2.ti_hour,t2.ti_min,t2.ti_sec,t2.ti_hund);
settime(&t1);
setdate(&d1);
printf("Don't worry, time was reset back to normal ;)\n");
}