A
aisling.cronin
Hi
I am using ctime to convert the following string 1144412677847 ....
Please could some one to double check if they get the same result as
me (The Time is Sun Nov 02 09:11:51 2031). It seems incorrect and
would like a second opion.
#include <time.h>
#include <stdio.h>
int main ()
{
unsigned long Timestamp;
time_t CTime;
Timestamp= (long)1144412677847 ;
CTime=ctime(&Timestamp);
printf ("The Time is %s", CTime);
exit(0);
}
The Time is Sun Nov 02 09:11:51 2031
I am using ctime to convert the following string 1144412677847 ....
Please could some one to double check if they get the same result as
me (The Time is Sun Nov 02 09:11:51 2031). It seems incorrect and
would like a second opion.
#include <time.h>
#include <stdio.h>
int main ()
{
unsigned long Timestamp;
time_t CTime;
Timestamp= (long)1144412677847 ;
CTime=ctime(&Timestamp);
printf ("The Time is %s", CTime);
exit(0);
}
The Time is Sun Nov 02 09:11:51 2031