Re: using perl to print yesterday's date, but with formatting options ?
- From: Purl Gurl <purlgurl@xxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 09:33:19 -0800
Tom Van Overbeke wrote:
(snipped)
perl -le 'print scalar localtime time - 86400' which outputs: Sun Oct 30 17:56:52 2005
But the format I need is: 30.10.05
#!perl
@Array = localtime(time - 86400);
print $Array[3], ".", $Array[4] + 1, ".", $Array[5] + 1900;
Purl Gurl
.
- Prev by Date: Re: using perl to print yesterday's date, but with formatting options ?
- Next by Date: Re: Generate png thumbnail
- Previous by thread: Re: using perl to print yesterday's date, but with formatting options ?
- Index(es):