in reply to epoch time

Why can't you use those modules? There's also Date::Calc and Date::PCalc, doing this by hand would be ... painful, but you could have a hash of month lengths keyed by name, then subtract 1970 from the year and total up the days in each month before this one.

If there is no code here, it is for your enlightenment

Replies are listed 'Best First'.
Re^2: epoch time
by ikegami (Patriarch) on Jan 31, 2007 at 16:25 UTC
    Don't forget leap years...
      and that (among other things) is why its wiser to use established modules when you can.

      just another cpan module author