Rev 1668 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1665 | Nasarus | 1 | |
2 | |||
3 | unsigned date; |
||
4 | unsigned time; |
||
5 | |||
6 | date = kol_system_date_get(); |
||
7 | |||
8 | printf(" Date [dd.mm.yy]: %x%x.%x%x.%x%x", |
||
1668 | Nasarus | 9 | #elif LANG_RUS |
10 | printf(" „ â [¤¤.¬¬.££]: %x%x.%x%x.%x%x", |
||
11 | #endif |
||
12 | (date&0xf00000)>>20, (date&0xf0000)>>16, // day |
||
13 | (date&0xf000)>>12, (date&0xf00)>>8, //month |
||
1665 | Nasarus | 14 | (date&0xf0)>>4, (date&0xf) ); // year |
15 | |||
16 | |||
17 | |||
18 | |||
19 | #if LANG_ENG |
||
20 | |||
1668 | Nasarus | 21 | #elif LANG_RUS |
22 | printf("\n\r ‚६ï [çç:¬¬:áá]: %x%x:%x%x:%x%x\n\r", |
||
23 | #endif |
||
24 | (time&0xf0)>>4, (time&0xf), // hours |
||
25 | (time&0xf000)>>12, (time&0xf00)>>8, // minutes |
||
1665 | Nasarus | 26 | (time&0xf00000)>>20, (time&0xf0000)>>16 ); // seconds |
27 | |||
28 | return TRUE; |
||
29 | |||
30 |