i have a problem
i have a file which contains the time and is generated on sun machine.
i have to decode the time on linux machine.
the problem is that the sun machine shows different time and the linux
machine shows
different time.
below is the code i have used to test the time.
On SUN machine
#include<stdio.h>
#include<time.h>
int main()
{
time_t tme=1106661607;
printf("\nTime:%s",ctime(&tme));
return 0;
}
output:Time:Tue Jan 25 09:00:07 2005
On Linux
#include<time.h>
int main()
{
time_t tme=1106661607;
printf("\nTime:%s",ctime(&tme));
return 0;
}
output:Time:Tue Jan 25 06:00:07 2005
how can i solve this problem..