Subversion Repositories Kolibri OS

Rev

Rev 3247 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3247 Rev 8827
Line 1... Line -...
1
int cmd_date(char param[])
-
 
2
{
1
int cmd_date(char param[])
3
unsigned date;
2
{
4
unsigned time;
3
	unsigned date;
5
 
4
	unsigned time;
Line 6... Line 5...
6
date = kol_system_date_get();
5
 
7
#if LANG_ENG
-
 
8
	printf("  Date [dd.mm.yy]: %x%x.%x%x.%x%x", 
6
	date = kol_system_date_get();
9
#elif LANG_RUS
-
 
10
	printf("  „ â  [¤¤.¬¬.££]: %x%x.%x%x.%x%x", 
-
 
11
#endif
-
 
12
	(date&0xf00000)>>20, (date&0xf0000)>>16,  // day
7
		printf(CMD_DATE_DATE_FMT, 
13
	(date&0xf000)>>12, (date&0xf00)>>8, //month
8
		(date&0xf00000)>>20, (date&0xf0000)>>16,  // day
14
	(date&0xf0)>>4, (date&0xf) ); // year
9
		(date&0xf000)>>12, (date&0xf00)>>8, //month
Line 15... Line 10...
15
 
10
		(date&0xf0)>>4, (date&0xf) ); // year
16
 
-
 
17
time = kol_system_time_get();
-
 
18
 
-
 
19
#if LANG_ENG
11
 
20
	printf("\n\r  Time [hh:mm:ss]: %x%x:%x%x:%x%x\n\r", 
-
 
21
#elif LANG_RUS
-
 
22
	printf("\n\r  ‚६ï [çç:¬¬:áá]: %x%x:%x%x:%x%x\n\r", 
12
 
23
#endif
13
	time = kol_system_time_get();
24
	(time&0xf0)>>4, (time&0xf), // hours
14
		printf(CMD_DATE_TIME_FMT, 
Line 25... Line 15...
25
	(time&0xf000)>>12, (time&0xf00)>>8, // minutes
15
		(time&0xf0)>>4, (time&0xf), // hours