getTime()

Date now = new Date();long time = now.getTime();I have my timestamp in the variable time. But everytime I use time it gives my a different timestamp. How can I take the timestamp when the program starts and store it in a variable?
[251 byte] By [Dennis_Madsena] at [2007-10-3 4:56:32]
# 1
> Date now = new Date();>long time = now.getTime();> have my timestamp in the variable time. But everytime> I use time it gives my a different timestamp.eh? No it does not.You are doing new Date each time. Stop doing that.
cotton.ma at 2007-7-14 23:01:47 > top of Java-index,Java Essentials,Java Programming...
# 2
Well, thanks!
Dennis_Madsena at 2007-7-14 23:01:47 > top of Java-index,Java Essentials,Java Programming...