Math is hard...

Purdy on 2007-09-13T14:11:49

especially when it involves dates & times. This random musing comes from upgrading CAP::Session and remembering the pain of writing tests for session_delete.

At this point in our lives, time is intuitive. Computers don't come pre-installed with the human experience, much like children. With my oldest daughter (age 3), she's currently stuck on everything in the past happened "yesterday", regardless of if it actually was yesterday or last month or two minutes ago.

Major props to those CPAN modules that get it right (DateTime being my current favorite) ... it's harder than you think.

I don't suggest those of you who are childless to rush out and get a child, but children do bring a real life analogy to what your computer is like. Now I just need to finish this Potty_Training 2.0 upgrade.

Peace,

Jason