Re: Problem z wyświetlaniem daty
On Tuesday 29 of March 2011, Paweł Lalewicz || i-pawelek@tlen.pl || wrote:
> Witam wszystkich używam w skryptach funkcji jeden miesiąc wstecz
> W marcu wyświetla mi marzec czy nie jest to przypadkiem błąd w pakiecie?
Nie.
> Jak u was wygląda sprawa?
> # date --date="1 month ago" +%m
Cytat z `info date'
"The fuzz in units can cause problems with relative items. For
example, `2003-07-31 -1 month' might evaluate to 2003-07-01, because
2003-06-31 is an invalid date. To determine the previous month more
reliably, you can ask for the month before the 15th of the current
month."
--
Kruk@ -\ |
}-> epsilon.eu.org |
http:// -/ |
|
Reply to: