1) Re the statement: "... real time calculations ...".

To clarify, I mean any time sensitive calculations using the machine's
system clock.

2) Re the statement: "... In such situations these apps may have
to be reset first before changing the system clock. "

I think I got this backwards!  You would have to reset the apps AFTER you
change the system clock.

Sorry for any confusion.


-----Original Message-----
From: Hung Yee [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 9:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Off Topic - How to set ur System Time


Well, to my knowledge, setting the machine's system date and time is very OS
dependent, and the only way I know of in Java to do this would be to use the
'exec()' methods of the 'java.lang.Runtime' class to do the OS call.

Even so, you may run into some security issues about setting your server's
system date.  For example, On Unix systems, you typically need to have
'root' user privileges to change the system date and time.

Another thing to remember is that by changing the machine's system date,
you're affecting all programs that use the system's clock, not just your own
Java application.  This could be an issue if you have running programs that
are doing real time calculations and if you suddenly change the system clock
on them in midstream without them knowing about it you could cause these
applications to generate wrong data.  In such situations these apps may have
to be reset first before changing the system clock.

Anyways, these are just my 2 cents worth.

-----Original Message-----
From: Venkat Krishnan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 04, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: Off Topic - How to set ur System Time


Hi Friends,

I am really sorry for writing to this group, but i have not received
replies from other groups. I urgently need help, about how to change ur
system time and date using Java. I am out of house and would be obligied
if friends, who are replying will send a cc of the mail to my this email
id also.

Thanking in advance

Cheers

Venkat

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to