Two other answers are correct.
By the way, this kind of working with a date is much easier using the Joda-Time library or the java.time package (inspired by Joda-Time). Both libraries have time classes that have a clearly defined time zone (unlike java.util.Date/.Calendar).
Both Joda-Time and java.time use the same epoch : 1970-01-01T00:00:00Z .
Both use standard ISO 8601 formats when generating a textual representation of their date and time values.
Joda time
In Joda-Time 2.7.
DateTime epoch = new DateTime( 0 , DateTimeZone.UTC );
java.time
In java.time Java 8 Update 45.
ZonedDateTime epoch = ZonedDateTime.ofInstant( Instant.EPOCH , ZoneOffset.UTC ) ;
source share