O
ohaya
Hi,
I'm using:
import java.util.Date;
..
..
Date now = new Date();
to get the current date/time. This works fine, but I was wondering:
Each time this is invoked, it is doing a "new Date()", i.e., creating a
new Date instance.
Is there any way I can just refresh the current time, instead of doing a
"new" each time? Something like "now.update();"?
Thanks,
Jim
I'm using:
import java.util.Date;
..
..
Date now = new Date();
to get the current date/time. This works fine, but I was wondering:
Each time this is invoked, it is doing a "new Date()", i.e., creating a
new Date instance.
Is there any way I can just refresh the current time, instead of doing a
"new" each time? Something like "now.update();"?
Thanks,
Jim