java time
Andrey Andreev
andreev at cs.helsinki.fi
Mon Nov 1 13:01:10 UTC 2004
Vano Beridze wrote:
> Hello
>
> I've got Fedora Core 2
> kernel 2.6.8
>
> if I run a command date
> it gives me the output
> Fri Oct 29 22:03:50 GEST 2004
>
> but If I compile and run a simple java program (with jdk1.4.2 or jdk1.5)
>
> public class A
> {
> public static void main(String[] args)
> {
> System.out.println(new java.util.Date());
> }
> }
>
> it gives me the output
> Fri Oct 29 23:03:50 GEST 2004
>
> I'm sure it's a fedora problem, because I did not have that problems on
> Core 1 or previous releases.
>
> What should I do?
How about using java.util.Calendar? java.util.Date is somewhat old, and
lots of functionality has been implemented in java.util.Calendar that
was not backported to java.util.Date (localization issues were quoted as
the reason for "dumping" java.util.Date)
//Andro
--
Andrey Andreev
University of Helsinki
Dept. of Computer Science
More information about the users
mailing list