Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
959 leency 1
 
2
 
3
unsigned date;
4
unsigned time;
5
6
date = kol_system_date_get();
7
 
8
	(date&0xf00000)>>20, (date&0xf0000)>>16,  // day
9
	(date&0xf000)>>12, (date&0xf00)>>8, //month
10
	(date&0xf0)>>4, (date&0xf) ); // year
11
12
13
 
14
 
15
printf("\n\r  time [hh:mm:ss]: %x%x:%x%x:%x%x\n\r",
16
 
17
	(time&0xf000)>>12, (time&0xf00)>>8, // minutes
18
	(time&0xf00000)>>20, (time&0xf0000)>>16 ); // seconds
19
20
}
21