MayFlowerNew
Programmer
Hi,
is there any way to calculate other date&time like london, tokyo from gmtime?
Thanks in advance
is there any way to calculate other date&time like london, tokyo from gmtime?
Thanks in advance
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.
#include <stdio.h>
#include <time.h>
#define CET (1)
int main ()
{
time_t rawtime;
tm * ptm;
time ( &rawtime );
ptm = gmtime ( &rawtime );
printf ("CET now is :-%2d:%02d\n", ptm->tm_hour+CET, ptm->tm_min);
return 0;
}