CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #6
    Join Date
    Jun 2009
    Posts
    118

    Re: regarding the behaviour of gmtime() Linux system function

    Quote Originally Posted by treuss View Post
    I can only imagine that mktime runs differently because of different environment settings. E.g. if you run as user1 you might have TZ variable set, if you run as user2 you might have not and thus /etc/timezone is used.

    But probably you are running as the same user, so that's not the case.

    I recommend checking for wormholes outside your window.
    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)

    After calling localtime() function, I check the tm_zone field (set by localtime()) of its return value, i.e., struct tm*, and observe it to be EET, which seems to be correct.

    What do you mean by wormhole and how can I check for them ?
    Last edited by aryan1; May 17th, 2010 at 03:27 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured