Subversion Repositories Kolibri OS

Rev

Rev 3247 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. int cmd_date(char param[])
  3. {
  4.         unsigned date;
  5.         unsigned time;
  6.  
  7.         date = kol_system_date_get();
  8.                 printf(CMD_DATE_DATE_FMT,
  9.                 (date&0xf00000)>>20, (date&0xf0000)>>16,  // day
  10.                 (date&0xf000)>>12, (date&0xf00)>>8, //month
  11.                 (date&0xf0)>>4, (date&0xf) ); // year
  12.  
  13.  
  14.         time = kol_system_time_get();
  15.                 printf(CMD_DATE_TIME_FMT,
  16.                 (time&0xf0)>>4, (time&0xf), // hours
  17.                 (time&0xf000)>>12, (time&0xf00)>>8, // minutes
  18.                 (time&0xf00000)>>20, (time&0xf0000)>>16 ); // seconds
  19.  
  20.         return TRUE;
  21. }
  22.  
  23.