XP is just a number | |
PerlMonks |
Re: How to subtract month without using module?by Zaxo (Archbishop) |
on Jul 25, 2005 at 05:35 UTC ( [id://477689]=note: print w/replies, xml ) | Need Help?? |
. . . without using any module. Who is handicapping you in this way? Do they have any stake in the result? You'll have to decide whether six months have 182 or 183 days (or 182.62). I'll show two ways of getting a readable time. The POSIX::strftime() method is the more flexible, so pick it if requirements tend to slip around. After Compline,
In Section
Seekers of Perl Wisdom
|
|