in reply to Exact definition of DateCalc and Delta_Format functions

DateCalc in version 6
Delta_Format in version 6

DateCalc in version 5
Delta_Format in version 5

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Exact definition of DateCalc and Delta_Format functions
by SBECK (Chaplain) on Mar 20, 2024 at 19:34 UTC
    I would encourage you to use the far more powerful OO interface in Date::Manip rather than the older functional interface.

    Instead of using DateCalc, use the calc method (and see here for the full description of date calculations.

    Instead of using Delta_Format, use the printf method (and see here for a full description of delta formatting).

    Of course, if you already have a script that uses the functional interface, it may not be worth the effort to change it.