User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:dos.h:gettime

gettime

description of gettime

gettime function is used to find current system time.
returns structure varibale of type ( struct time ).

#include<stdio.h>
#include<dos.h>
 
int main(void)
{
   struct time t;
   gettime(&t);
   printf("time is %d:%d:%d\n",t.ti_hour,t.ti_min,t.ti_sec);
   return 0;
}

output of gettime c example

  time is 12:30:42

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/dos.h/gettime.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz