Computing.Net > Forums > Programming > Using current time in C++

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Using current time in C++

Reply to Message Icon

Original Message
Name: CompFreek101
Date: March 6, 2006 at 17:22:02 Pacific
Subject: Using current time in C++
OS: Ubuntu Linux 5.10
CPU/Ram: 500mhz, 320mb
Model/Manufacturer: IBM ThinkPad
Comment:

Hello.
Does anybody know how to use the current time in C++? What I intend to do is have a function within my program execute when hours past midnight is equal to 9 and minutes past 9 is 30. I don't need to utilize seconds. If anybody needs more info just ask, as it is a bit hard to explain.

Thanks everybody.


Report Offensive Message For Removal


Response Number 1
Name: nails
Date: March 6, 2006 at 21:35:39 Pacific
Reply: (edit)

check out this thread:

http://www.tek-tips.com/viewthread.cfm?qid=246034


Report Offensive Follow Up For Removal

Response Number 2
Name: Prissy
Date: March 9, 2006 at 08:44:57 Pacific
Reply: (edit)

if you know how to get it from DOS, use the system function ie system("cls") for clearing the screen ... although, that command escapes me at this time :-s

HTH


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software