I'm working on a real-time client-server app. The client has to use the server
time, and also displays it (I'm doing something similar to
DateTimeUtils.setCurrentMillisOffset). The user may want to adjust their system
time if it's different, and that will ravage all the timers in the app (well,
until I replace them with a wait()-based implementation).
Hope it's clear now. Sorry for the off-topic.
Adrian
----- Original Message ----
From: Stephen Colebourne <[EMAIL PROTECTED]>
To: Discussion of the Joda project <[email protected]>
Sent: Thursday, February 15, 2007 8:20:05 PM
Subject: Re: [Joda-interest] Changing system time
My question would be why are you changing the system time?
Joda-Time supports the ability to change the apparent system time.
Simply use DateTimeUtils.currentTimeMillis() instead of
System.currentTimeMillis(). There are methods to change the time
programmatically on DateTimeUtils.
Stephen
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest