C timestamp difference -


yes, made revision of subject timestamp :) there can't understand

my code:

#include <stdio.h> #include <time.h>  int main () {   time_t rawtime;   struct tm * timeinfo;   time_t = time(null);    time ( &rawtime );   timeinfo = localtime ( &rawtime );   printf ("current local time , date: %s \n", asctime (timeinfo) );   printf("system time: %d",now);    return 0; } 

after run got: current local time , date: fri may 3 09:17:07 2013

system time: 1367565427

but 1367565427 it's not 09:17 07:17:07

why? asked local - system time (which 09:17) " time_t = time(null); " how can stetem time?

timestamp in gmt, while localtime converts timestamp local time, seems live in gmt +2.0 zone.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -