Why aren't you using DateTime for this?
mtfnpy
In reply to Re: timelocal error when executed twice. by stonecolddevin in thread timelocal error when executed twice. by Anonymous Monk