Reg - dynamic variable content
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Thiyagarajan_Nagan
Posted On:   Thursday, December 28, 2006 05:04 AM

Consider there is a client and a server. If there is a TCP/IP Connection established between the two, i have to get the current time and display.... Ok i done it using Date now = new Date(); and DateFormat.getTimeInstance().format(now).... But if i refresh the server when it is already up for the second time, the older get time is replaced by the new current time... How to avoid this?

Re: Reg - dynamic variable content

Posted By:   Christopher_Koenigsberg  
Posted On:   Sunday, January 7, 2007 04:18 PM

um, you save the original time, and then refer to that saved value, rather than getting a new Date() every time?
About | Sitemap | Contact