datetime - why Unix Time Stamp for same time is different in different timezone -


why 7/18/2013 11:33 different in gmt timezone , in local time zone (asia/kolkata)? unix time-stamp ticks being calculated since epoch time 1/1/1970 00:00:00 gmt know there epoch time had occurred @ different interval in different timezone still. number of second elapsed should have been same

for example if i(+5:30 gmt) , friend(+5:00 gmt) starts counting ticks 00:00 hrs respectively @ 18:00 hrs in both timezone number of ticks should same. why same thing not true unix time-stamp.

need understand concept fully.

for example if i(+5:30 gmt) , friend(+5:00 gmt) starts counting ticks 00:00 hrs respectively @ 18:00 hrs in both timezone number of ticks should same.

no, because both of start counting 00:00 utc. that's definition. you, mean number of ticks since 18:30, , friend mean number of ticks since 19:00.

the idea single instant in time has same timestamp value everywhere. if calling (and ignoring phone delays) both agree "now" unix timestamp of 1374130418. may have different local time me, can express "now" in common format.

see "core concepts" part of noda time user guide more discussion of local time vs "global" time.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -