in reply to Epoch Day Question. Also, EzDate vs DateTime

Why not just use YYYYMMDD as the number?

And never heard of EzDate before. We use (a subclassed version of) DateTime for most things at work (well, in new code; there's still lots of other Date::Calc and Date::Manip stuff strewn hither and yon).

Update: Oop, you're right. I didn't think about the edge cases of YYYY0131 being followed by YYYY0201.

  • Comment on Re: Epoch Day Question. Also, EzDate vs DateTime

Replies are listed 'Best First'.
Re^2: Epoch Day Question. Also, EzDate vs DateTime
by tphyahoo (Vicar) on Aug 03, 2006 at 14:58 UTC
    The reason I want an epoch date is for normalizing.

    Dec 31 1999 and Jan 1 2000 are just one day away, so there data should appear as neighbors on the graph, or statistics analysis, or whatever.

    Changing a date into an epoch day seemed to me the simplest way to do this. Each day gets a unique integer, and neighbor days are always neighbors... just works.