Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to subtract month without using module?

by radiantmatrix (Parson)
on Jul 25, 2005 at 14:00 UTC ( [id://477826]=note: print w/replies, xml ) Need Help??


in reply to How to subtract month without using module?

Well, you could copy the relevant code from Date::Calc (here) and paste it into your application.

However, I am curious as to what the reason is for not using any modules? If it is due to distribution concerns (i.e. desire to distribute one file), you should look into PAR, which may solve that issue.

If it is a question of not requiring someone to download and install CPAN modules, you could always include the Date::Calc module in your code distribution.

Date math is notoriously tricky and caveat-ridden; why do you need to reinvent the wheel?

<-radiant.matrix->
Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law
  • Comment on Re: How to subtract month without using module?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477826]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-24 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found