Calendar.getTime() returns Sat Jan 17 06:53:44 1970
Stephen Thomas
stephen@thomas.mitre.org
Fri Apr 23 10:05:00 GMT 1999
In playing around with GCJ I noticed that Calendar.getTime() always
returns Sat Jan 17 06:53:44 1970 if I compile from source
gcj --main=Today -o Today Today.java
and always returns Wed Dec 31 18:36:07 1969 if I compile from bytecode
gcj --main=Today -o Today Today.class
=================================
import java.util.*;
public class Today {
public static void main(String[] args) {
Calendar rightNow = Calendar.getInstance();
System.out.println(rightNow.getTime());
}
}
=================================
Weird, eh?
Steve
More information about the Java
mailing list