I'd suggest checking out Date::Manip from CPAN. I use it to do date comparisons in some of my scripts. Why do you need to convert the date when writing it to the file. Just save the epoch time and use Date::Manip to eval the epoch time in the file to the current epoch time.
William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]