Rustem Gimadutdinov (rgimad)
68cf3e4293
- big refactoring, now uses libc.obj - added kfetch command git-svn-id: svn://kolibrios.org@8827 a494cfbc-eb01-0410-851d-a64ba20cac60
23 lines
506 B
C
23 lines
506 B
C
|
|
int cmd_date(char param[])
|
|
{
|
|
unsigned date;
|
|
unsigned time;
|
|
|
|
date = kol_system_date_get();
|
|
printf(CMD_DATE_DATE_FMT,
|
|
(date&0xf00000)>>20, (date&0xf0000)>>16, // day
|
|
(date&0xf000)>>12, (date&0xf00)>>8, //month
|
|
(date&0xf0)>>4, (date&0xf) ); // year
|
|
|
|
|
|
time = kol_system_time_get();
|
|
printf(CMD_DATE_TIME_FMT,
|
|
(time&0xf0)>>4, (time&0xf), // hours
|
|
(time&0xf000)>>12, (time&0xf00)>>8, // minutes
|
|
(time&0xf00000)>>20, (time&0xf0000)>>16 ); // seconds
|
|
|
|
return TRUE;
|
|
}
|
|
|