Rev 1665 | Rev 3247 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1665 | Rev 1668 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | unsigned time; |
4 | unsigned time; |
5 | 5 | ||
6 | date = kol_system_date_get(); |
6 | date = kol_system_date_get(); |
Line 7... | Line 7... | ||
7 | printf(" date [dd.mm.yy]: %x%x.%x%x.%x%x", |
7 | #if LANG_ENG |
- | 8 | printf(" Date [dd.mm.yy]: %x%x.%x%x.%x%x", |
|
8 | (date&0xf00000)>>20, (date&0xf0000)>>16, // day |
9 | #elif LANG_RUS |
- | 10 | printf(" â [¤¤.¬¬.££]: %x%x.%x%x.%x%x", |
|
- | 11 | #endif |
|
- | 12 | (date&0xf00000)>>20, (date&0xf0000)>>16, // day |
|
9 | (date&0xf000)>>12, (date&0xf00)>>8, //month |
13 | (date&0xf000)>>12, (date&0xf00)>>8, //month |
10 | (date&0xf0)>>4, (date&0xf) ); // year |
14 | (date&0xf0)>>4, (date&0xf) ); // year |
11 | 15 | ||
Line 12... | Line 16... | ||
12 | 16 | ||
Line -... | Line 17... | ||
- | 17 | time = kol_system_time_get(); |
|
13 | time = kol_system_time_get(); |
18 | |
- | 19 | #if LANG_ENG |
|
- | 20 | printf("\n\r Time [hh:mm:ss]: %x%x:%x%x:%x%x\n\r", |
|
- | 21 | #elif LANG_RUS |
|
14 | 22 | printf("\n\r ६ï [çç:¬¬:áá]: %x%x:%x%x:%x%x\n\r", |
|
15 | printf("\n\r time [hh:mm:ss]: %x%x:%x%x:%x%x\n\r", |
23 | #endif |
16 | (time&0xf0)>>4, (time&0xf), // hours |
24 | (time&0xf0)>>4, (time&0xf), // hours |
Line 17... | Line 25... | ||
17 | (time&0xf000)>>12, (time&0xf00)>>8, // minutes |
25 | (time&0xf000)>>12, (time&0xf00)>>8, // minutes |