get system time

From , 2 Years ago, written in C, viewed 211 times.
URL https://pastebin.vip/view/53ed35c7
  1. #include   <stdio.h>
  2. #include   <dos.h>
  3.  
  4. int main(void)
  5. {
  6.    struct  time t;
  7.  
  8.    gettime(&t);
  9.    printf("The current time is: %2d:%02d:%02d.%02d\n",
  10.           t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund);
  11.    return 0;
  12. }
  13.  

Reply to "get system time"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website