Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/* GMTIME.C: This program uses gmtime to convert a long-
* integer representation of coordinated universal time
* to a structure named newtime, then uses asctime to
* convert this structure to an output string.
*/
#include <time.h>
#include <stdio.h>
int main( void )
{
struct tm *newtime;
long ltime;
time( <ime );
/* Obtain coordinated universal time: */
newtime = gmtime( <ime );
printf( "Coordinated universal time is %s\n",
asctime( newtime ) );
return 0;
}
#include <ctime>
#include <cstdio>