Faking/Altering system time with JVM
843811Sep 22 2004 — edited Feb 28 2006odd question but...
Does anybody know of a way to fake/alter the system time read by the Data/System classes? For example, if I want to pretend it is next year. Can I alter the date for all applications running in that JVM? Feels like a jvm option (didn't find any that match up).
Realise that the clock on the machine (solaris) could be changed but I want to isolate the time shift to a particular JVM or Unix shell instance.
thanks / Matthew