Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by Matts (1087) on 2002.12.29 18:07 (#15645) Journal
    Check out Time::Piece, which ships with Time::Seconds. Also check out Date::ICal, which ships with Date::ICal::Duration.

    All achieve the same thing.
    • I seem to recall that both Date::Calc and Date::Manip might also do the same thing. Could be wrong though as it's been a while since I've looked...
    • Oh, I know about Time::Seconds (I'm a big advocate of using Time::Piece). This isn't my attempt to replace it, just something that I was playing around with that I thought I'd share.

      There are differences between the two module tho'. Time::Seconds uses exported symbolic constansts where Time::Period uses objects. Also adding one year or one month to a date using Time::Seconds will add a fixed number of seconds whereas Time::Period will really add one year or one month.

      Didn't know about Date::ICal::Durati

      • Yep, this is a rather fundamental flaw in Time::Seconds (though there will always be issues with adding real durations too - like what to do adding a month at March 31st). I have been thinking seriously about re-writing Time::Piece entirely in terms of Date::ICal to try and fix this flaw.