|
-
May 18th, 2010, 10:53 AM
#7
Re: regarding the behaviour of gmtime() Linux system function
 Originally Posted by aryan1
This problem seems to be weird.
At one execution of my program, time increment works fine, but on another run of my program at a later time, it does not. (I run it with the same user)
I'm not 100% sure if this is the problem, but you are not setting timeinfo.tm_isdst, which means the value of the field is undefined when calling mktime. Try explicitly setting timeinfo.tm_isdst to -1 (information not available) to have the system try to figure out itself whether DST is in effect or not.
 Originally Posted by aryan1
What do you mean by wormhole and how can I check for them ?
They look something like this.
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf
Premature optimization is the root of all evil --Donald E. Knuth
Please read Information on posting before posting, especially the info on using [code] tags.
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
|