GetLocalTime() for Linux/Unix

Discussion in 'C Programming' started by Ever Olano, Jun 30, 2004.

  1. Ever Olano

    Ever Olano Guest

    Hi, on Windows, I use GetLocalTime() to get the current time in terms of
    year, month, day, hour, minute, second, milliseconds. Is there an
    equivalent function on Linux and Unix?

    Thanks!
     
    Ever Olano, Jun 30, 2004
    #1
    1. Advertisements

  2. Ever Olano

    Ever Olano Guest

    I think I just found the answer to my own question: localtime(). :)
     
    Ever Olano, Jun 30, 2004
    #2
    1. Advertisements

  3. Ever Olano

    Ever Olano Guest

    And in fact, localtime() is available on Windows, too. :)
     
    Ever Olano, Jun 30, 2004
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.