in reply to Re: Date operations
in thread Date operations

You should really think about using Date::Calc and/or Date::Manip. These might be overkill for this particular task but are lifesavers if you have to do anything else with dates.

The reason I liked the current way Im making the operations is that I dont have to get or install any modules...wich are a pain in the a** to configure in my hosting service...

Replies are listed 'Best First'.
Re: Re: Re: Date operations
by grep (Monsignor) on Aug 11, 2002 at 23:36 UTC

    pain in the a** to configure in my hosting service...

    One (including myself) might argue that recreating any portion of Date::Calc or Date::Manip is a pain in the a$$, since it is already correctly done for you.

    I think you will agree with me the first time you forget one of the rules for leapyears or your client says he/she wants 30 days to not including weekends ;-)

    You most likely have seen this already but, if it helps tachyon has a tutorial on this.



    grep
    Just me, the boy and these two monks, no questions asked.
Re: Re: Re: Date operations
by fglock (Vicar) on Aug 12, 2002 at 20:20 UTC

    from the Perl CGI Programming FAQ:

    (if you don't) have access to install these modules with the other Perl library files, you can still use it by placing the module in a convenient place and adding the following to your script: BEGIN { unshift (@INC, "/your/dir/favorite/place"); }