current date/time function

Z

zxcv

Is there a function in Java that will return the current date/time?
If so, were does it get the value from (system)?
 
M

Michael Rauscher

zxcv said:
Is there a function in Java that will return the current date/time?

Of course.
If so, were does it get the value from (system)?

Hmm, AFAIR Java does neither have a crystal ball nor can it ensure that
there's a network connection to a time server. So, it should be the
local system where it gets the value from... SCNR

Bye
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top