how to use the machine date as an input! plz help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • momotaro
    Contributor
    • Sep 2006
    • 357

    how to use the machine date as an input! plz help!

    i m looking to have the date of the computer used as an input in a program can u help?
    thx!!
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    call the time(...) function to the the timein seconds since 1/1/1970

    There are other functions in the standard library (gmtime?) to convert this to year, month, day, hour minute and seconds.

    Comment

    Working...