in reply to questions about strftime

I saved this snippet as a program and ran it on itself. It gave me January 10. Is your clock wrong?

Replies are listed 'Best First'.
Re^2: questions about strftime
by tcf03 (Deacon) on Jan 10, 2005 at 22:07 UTC
    no the clock is fine, it works fine for me to on a Linux or BSD box, just in windows I need to subtract the 86400 from $modtime
      Are you using one local time on one machine and another time zone on one of the other machines? If, say you're in the US, Eastern Time Zone (GMT - 5 hours), an overlap could occur for 5 hours a day. e.g. 01:00 hours Tuesday GMT on one machine would be 20:00 hours Monday, EST on another. Just make sure all of the machines are on the same time zone.