current date/time function

Discussion in 'Java' started by zxcv, Nov 13, 2004.

  1. zxcv

    zxcv Guest

    Is there a function in Java that will return the current date/time?
    If so, were does it get the value from (system)?
    zxcv, Nov 13, 2004
    #1
    1. Advertising

  2. 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
    Michael Rauscher, Nov 13, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manu
    Replies:
    1
    Views:
    6,099
    Natty Gur
    Jul 20, 2003
  2. Chris Berg
    Replies:
    0
    Views:
    789
    Chris Berg
    Oct 27, 2003
  3. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,252
    Michael Borgwardt
    May 30, 2004
  4. Keith Cochrane
    Replies:
    2
    Views:
    614
    Keith Cochrane
    Aug 6, 2006
  5. Summu82
    Replies:
    5
    Views:
    865
    Richard Heathfield
    Jun 7, 2006
Loading...

Share This Page