in reply to Yesterdays date while daylight saving time change
$ perl -MDate::Simple=today -wle 'print today() - 1' 2010-03-28
(Update:) Of course this can be generalized to get the previous date from any other date:
$ perl -MDate::Simple=date -wle 'print date("2010-04-01") - 1' 2010-03-31
Or in fact going any number of days forwards or backwards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Yesterdays date while daylight saving time change
by Schaelle (Novice) on Mar 29, 2010 at 09:27 UTC |