in reply to getting answer 70 years off
Thanks for all the replies. For the record, I see the consensus as being that due to the difference in what localtime and timelocal assume, using them together in this manner is a bad idea, and the best solution is the use DateTime or similar. I assume that DateTime will work the same on all systems, OSs. If that is incorrect, somebody please say so.