You are here

1234567890 seconds since Unix epoch

3 posts / 0 new
Last post
Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
1234567890 seconds since Unix epoch

It will have been 1234567890 seconds since the Unix epoch in just over a week.
$ date -d '1970-01-01 UTC 1234567890 seconds' to get the time for your time zone (for GNU/Linux).

NathanJ79
NathanJ79's picture
Offline
Last seen: 4 years 10 months ago
Joined: 2007-07-31 15:07
0447:54 on 13 Feb. '09?

It was at 0447:54 or did I calculate wrong? Here's my proof. Just used the basic Windows calculator so it didn't save all the calculations or let me copy/paste and no way am I doing all that again, but here's how I ran the numbers...

1234567890 seconds
/60 to see what that is in minutes
/60 to see what that is in hours
/24 to see what that is in days
/365.25 to see what that is in years, accounting for leap years (39 and change)
-39 because we've got the year, 2009, leaves us with 44 and change
-31 for January, leaves us with 13 and change
-13 because we've got the exact date, leaves us with a long decimal number
*24 to see what hour it is, we get 4 and change
-4 since we now know the hour
*60 to see what the minute is, we get 47 and change
-47 since we know the minutes
*60 to see the seconds...
...but that leaves me with 54... and change. It should even out to an integer. So I messed up somewhere or Windows rounded it off somewhere.

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
/365.25 to see what that is

/365.25 to see what that is in years

There's your problem. There's actually less than that in a year.

Vintage!

Log in or register to post comments