[5316] in java-interest
Re: java.util.Date;
daemon@ATHENA.MIT.EDU (Kevin Conner)
Mon Feb 5 22:02:51 1996
Date: Thu, 01 Feb 1996 08:36:28 +0000
From: Kevin Conner <knrc@impltd.com>
To: Sven Heinicke <sven@wired.com>
Cc: java-interest@java.sun.com
Hiya Sven
Sven Heinicke wrote:
>
> import java.util.Date;
>
> class datehack {
>
> public static void main (String args[]) {
> Date d = new Date();
> System.out.println(d);
> d.setSeconds(d.getSeconds() + 40);
> System.out.println(d);
> }
> }
>
Try using the following instead.
d.setTime(d.getTime()+40000) ;
Good luck,
Kev
-----------------------------------------------------------------------
Kevin Conner knrc@impltd.com Integrated Micro Products
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com