troubleshooting Question

how to check System Time on different computer with Java?

Avatar of JaZziD
JaZziD asked on
11 Comments2 Solutions332 ViewsLast Modified:
Hi experts

Basically i have a program that's installed in a computer, it's looking into a directory (could be local or somewhere in the server/different machine) for any new files.

How it works, everytime the program does a scan it will save the time in the config file so then in the next loop it will only check if there is any new file from the last time it scanned.

It doesnt have any problem if the directory is in the same computer. However i just had problem where the directory is in a different computer (a server) and the time is an hour behind, so it will always see new files as old files because of the time difference.

Now the question is:

Is there a way for me to check what's the time oin the other computer from where i installed my program?

Thanks very much
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros