Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > current date/time function

Reply
Thread Tools

current date/time function

 
 
zxcv
Guest
Posts: n/a
 
      11-13-2004
Is there a function in Java that will return the current date/time?
If so, were does it get the value from (system)?
 
Reply With Quote
 
 
 
 
Michael Rauscher
Guest
Posts: n/a
 
      11-13-2004
zxcv wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using the current method name within current method Matthew Heidemann Ruby 14 03-22-2011 03:56 AM
printing out the current URL for current ASP page in Perl Jack Perl Misc 3 12-22-2008 02:35 PM
Thread.current.parent and Thread.current.ancestors ara.t.howard@noaa.gov Ruby 3 02-16-2007 03:34 PM
How to update the current web page? (delete current web page + rewrite the page) laryten@yahoo.com Javascript 3 10-12-2006 07:33 PM
How to change the current thread current culture at run time. Manu ASP .Net 1 07-20-2003 03:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57