« Fun With Regular Expressions | Main | Copying a really long row in SQL »



March 17, 2005

News only nerds would care about...

Tomorrow, Fri, 18 Mar 2005 01:58:31 UTC will be exactly 1,111,111,111 seconds since the Epoch. See for yourself here. The Epoch as it relates to computer timestamps occurred on January 1, 1970. Many operating systems and programming functions rely heavily on the number of seconds or milliseconds since the Epoch for various calculations.

Posted by Chuck at March 17, 2005 03:36 PM

Trackback Pings

TrackBack URL for this entry:
http://www.chuckcaplan.com/blog/mt-tb.cgi/15

Comments

Here is a little program my friend Quinn wrote which calculates the number of seconds since the Epoch for a certain date:

public class SecondsSinceEpoch
{
public static void main(String[] args)
{
try
{
java.text.SimpleDateFormat format=new java.text.SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
java.util.Date mydate=format.parse(args[0]);
System.out.println("Seconds since epoch: "+(mydate.getTime()/1000));
}
catch (Exception e)
{
e.printStackTrace();
}
}
}

Posted by: caplan8293 [TypeKey Profile Page] at March 17, 2005 04:03 PM

Post a comment




Remember Me?