|
-
May 12th, 2010, 08:28 AM
#4
Re: regarding the behaviour of gmtime() Linux system function
 Originally Posted by treuss
The argument of mktime is a record representing the local time (according to your set timezone). gmtime on the other hand converts to UTC timezone. So according to your example result, your system's timezone is 3 hours off UTC.
My question was something else.
Can you imagine any factor which may cause gmtime() or localtime() functions to behave differently for the same input at different times ?
That is, I sometimes see "2010/04/02/07/05" and sometimes "2010/04/02/10/05" as output for the same input, i.e. 2010/04/02/10/00. I noticed this behaviour for both gmtime() and localtime() functions.
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
|