Epoch

Posted on 2 Comments

INTERESTING
How you determine your age?
I was born in 1987 and this is 2011, so I am 24 years old right now.

How most computer systems determine your age?
Time passed since 1st January 1970 till now (2011)
minus
Time passed since 1st January 1970 till when you were born (1987)
equals
(well, again) 24

The date 1st January 1970 is the Epoch date for the computer, signifying the start of time for it. That’s why timestamps in most programming languages are the seconds/milliseconds elapsed since the epoch.

2 thoughts on “Epoch

  1. Interesting information!

    Thanks for sharing Mr Linux!

  2. @Anurag Bhatia:
    My pleasure. I’m quite sure you’ll find yourself applying this knowledge somewhere in a future coding assignment. 🙂

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.