dcsimg
How to know the server time
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sopaan_Sinha
Posted On:   Wednesday, May 23, 2001 03:02 AM

Dear Sir/Madam

I am working on a standalone project which is to simulate various clients on a machine that hits the prticular URl .

I am required to first take the input from the client in a form that is developed in Java(Swings).

This form will spawn out various threads ,each in turn hit the URL.Kindly let me know the way by which i can know the Web Server time when the main thread hits the URL.

In general is there any way out to know the webserver time when the server started/completed /processed the request/responce from the client thru the Java console


rgds

Sopaan Sinha

Re: How to know the server time

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, May 23, 2001 11:23 AM

If you want to get the current time on your own system, you can do System.currentTimeMillis(), but that won't help you on the server side.



It the server is running a "time server" or "time daemon" (you can verify this using a UNIX client and typing "rdate [hostname]" at the command line), you might be able to connect to that to find out what time it is on that server.



-chris
About | Sitemap | Contact