• Advertisement
Sign in to follow this  

Quick time question

This topic is 3712 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all. Just wondering how I could quickly and efficiently populate two variables, say "minutes" and "hours" with the correct time. (I'm trying to make myself a nice little openGL clock) Can anyone help? Cheers

Share this post


Link to post
Share on other sites
Advertisement
In what operating system? In which language? Are you using any libraries other than OpenGL?

Share this post


Link to post
Share on other sites
Yes that would all be very useful information wouldn't it? I keep forgetting there's a world outside c++ ;)


So, Win32, C++

I don't think I'm using any libraries other than openGL

Thanks.

Share this post


Link to post
Share on other sites
You could try the localtime() function in the time.h/ctime header.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement