By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

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

momotaro
100+
P: 357
i m looking to have the date of the computer used as an input in a program can u help?
thx!!
Nov 4 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
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.
Nov 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.