The worst part of that method is that it is not portable. Only the GNU version of date (found on most Linuxes) supports that syntax. For example, on FreeBSD, the equivalent syntax is date -v-1d +%d. On other operating systems, date(1) might not even support such arithmetic.
I highly recommend keeping things Perl when doing so is easy if not trivial (as it is in this case).
In reply to Re^2: Date Handling in Perl
by Anonymous Monk
in thread Date Handling in Perl
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |