Quote Originally Posted by Muthuveerappan View Post
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.