XP is just a number | |
PerlMonks |
date arithmeticby morgon (Priest) |
on Jan 26, 2018 at 09:32 UTC ( [id://1207936]=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am looking for a better way to do some rather simple date-arithmetic. At the moment I am using the DateTime-Module but I just reinstalled it on a new system and I am shocked on how much dependencies it pulls in. I know there is a plethora of date-modules on CPAN and as I am too lazy to check them all out myself I hope for some pointers for something more lightweight... So my ideal solution would be using only core-modules while not getting too complicated or at least using modules that don't pull in half of cpan. What I need is a logic that produces a date depending on the current day:
If the current day is a Thursday I want the date of the following day. Here is what I do at the monent: Many thanks!
Back to
Seekers of Perl Wisdom
|
|