Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zeblar Nagrim

FILETIME

This topic is 5284 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

Okey, I have 2 values in FILETIME format... and I need to find out how many houers there are between them. How to do that? Convert to LONGLONG and do a bitoperation? Or what?

Share this post


Link to post
Share on other sites
Advertisement
Microsoft recommends converting FILETIME structures to ULARGE_INTEGER structures before manipulating them. (Essentially the same as LONGLONG, except unsigned). IIRC, you can turn the FILETIMEs to ULARGE_INTEGERs, subtract them, convert the result back to a FILETIME, then you can use FileTimeToSystemTime to turn the result into SYSTEMTIME structure, where the difference in hours should be the wHour member variable.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!