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

Dinkar Thakur

Why 7/18/2013 11:33 is different in GMT timezone and in my local Time Zone (Asia/kolkata)? As Unix time-stamp are the ticks being calculated since epoch time 1/1/1970 00:00:00 GMT so i know that there the epoch time had occurred at different interval in different timezone but still. the number of second elapsed should have been same

For example if I(+5:30 GMT) and My friend(+5:00 GMT) starts counting the ticks from 00:00 Hrs respectively so at 18:00 Hrs in both timezone number of ticks should be same. So why same thing is not true with the Unix time-stamp.

Need to Understand the concept fully.

Jon Skeet

For example if I(+5:30 GMT) and My friend(+5:00 GMT) starts counting the ticks from 00:00 Hrs respectively so at 18:00 Hrs in both timezone number of ticks should be same.

No, because both of you start counting from 00:00 UTC. That's the definition. So for you, that will mean the number of ticks since 18:30, and for your friend it will mean the number of ticks since 19:00.

The idea is that a single instant in time has the same timestamp value everywhere. So if I were calling you now (and ignoring phone delays) we could both agree that "now" is a Unix timestamp of 1374130418. You may have a different local time to me, but we can express "now" in a common format.

See the "core concepts" part of the Noda Time user guide for more discussion of local time vs "global" time.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Different time of execution for the same request

分類Dev

Can different processes create different files at the same time in the same directory?

分類Dev

Find what time it's in a different timezone in C#

分類Dev

Can different processes run RDTSC at the same time?

分類Dev

Same program returns different outputs each time?

分類Dev

Using two different networks at the same time

分類Dev

Same Queries on Same database at same time but Different Results?? [Big Query]

分類Dev

Unix Time stamp creation in C from custom data fields

分類Dev

Different result every time

分類Dev

Test two different npm package versions at the same time

分類Dev

How to update different node child at same time firebase android

分類Dev

Time complexity of two different bubble sort method with the same iterations

分類Dev

Record audio and microphone stream as different MediaRecorder tracks at the same time

分類Dev

How to run two lists of tasks with different return types at the same time

分類Dev

Can you have 2 different time ranges in the same query?

分類Dev

cron jobs set for different times, but execute at the same time.

分類Dev

Javascript help, Trying to animate two different sprites at same time

分類Dev

how a single file can be linked to two different streams at same time?

分類Dev

Is it possible to login a website with different user at the same time in chrome browser?

分類Dev

Apply the same function multiple time with different sets of arguments

分類Dev

run same sql queries for different tables at a time (bash script)

分類Dev

Why are the number of bytes consed reported by TIME differing for different calls?

分類Dev

Why python datetime replace timezone is returning different timezone?

分類Dev

Calcuate time duration in different row and different column?

分類Dev

Calculate time execution for different methods

分類Dev

Can the time stamp of a Retweet be accessed?

分類Dev

how do i convert unix time stamp to formatted date while using json_extract_scalar in bigquery

分類Dev

Getting epoch time from gmt time stamp

分類Dev

what is RT_PREEMPT? how is it different from preempt rt ?does these mean same real time patch to linux?

Related 関連記事

  1. 1

    Different time of execution for the same request

  2. 2

    Can different processes create different files at the same time in the same directory?

  3. 3

    Find what time it's in a different timezone in C#

  4. 4

    Can different processes run RDTSC at the same time?

  5. 5

    Same program returns different outputs each time?

  6. 6

    Using two different networks at the same time

  7. 7

    Same Queries on Same database at same time but Different Results?? [Big Query]

  8. 8

    Unix Time stamp creation in C from custom data fields

  9. 9

    Different result every time

  10. 10

    Test two different npm package versions at the same time

  11. 11

    How to update different node child at same time firebase android

  12. 12

    Time complexity of two different bubble sort method with the same iterations

  13. 13

    Record audio and microphone stream as different MediaRecorder tracks at the same time

  14. 14

    How to run two lists of tasks with different return types at the same time

  15. 15

    Can you have 2 different time ranges in the same query?

  16. 16

    cron jobs set for different times, but execute at the same time.

  17. 17

    Javascript help, Trying to animate two different sprites at same time

  18. 18

    how a single file can be linked to two different streams at same time?

  19. 19

    Is it possible to login a website with different user at the same time in chrome browser?

  20. 20

    Apply the same function multiple time with different sets of arguments

  21. 21

    run same sql queries for different tables at a time (bash script)

  22. 22

    Why are the number of bytes consed reported by TIME differing for different calls?

  23. 23

    Why python datetime replace timezone is returning different timezone?

  24. 24

    Calcuate time duration in different row and different column?

  25. 25

    Calculate time execution for different methods

  26. 26

    Can the time stamp of a Retweet be accessed?

  27. 27

    how do i convert unix time stamp to formatted date while using json_extract_scalar in bigquery

  28. 28

    Getting epoch time from gmt time stamp

  29. 29

    what is RT_PREEMPT? how is it different from preempt rt ?does these mean same real time patch to linux?

ホットタグ

アーカイブ