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