To give an example to false looking result of gmtime(), given the following year/month/day/hour/minute input:

2010/04/02/10/00

The result returned by gmtime() is:

2010/04/02/07/05, where 2010/04/02/10/05 is expected.