|
-
December 15th, 2010, 04:07 AM
#9
Re: time_t
 Originally Posted by Muthuveerappan
Thanks
------------
Thanks a lot !!
gmtime actually resolves the problem because it is the GMT time
I did check timezone, tzname[0], tzname[1], it doesn't show the correct names, but thats ok.
I guess gmtime should do it for me.
Question
---------------
I am new to this library, according to what i understand, time_t can only store upto the nearest second. Correct me if i am wrong
Is there a data type that is capable of storing milliseconds or is time_t capable of storing it ?
Yes, it is timeb (or _timeb) structure that additionally contains milliseconds. Use ftime to get a timeb struct.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|