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

Seconds in a day

P: 41

Does anyone know of predefined method in c / C++ that will give the number of seconds in a day and number of seconds in a week ???
Mar 20 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 5K+
P: 5,000
No, but you could search for a time.h and see whats in there.
Mar 20 '07 #2

Expert Mod 2.5K+
P: 4,677
Or just calculate them and set them as globals...
Mar 20 '07 #3

Expert Mod 5K+
P: 8,916
Or use a #define or global constant
Mar 20 '07 #4

Post your reply

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