Re: Date function
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Tue, 28 Nov 2006 23:18:00 +0100
boyd wrote:
something like:
my( $day, $mon, $yr ) = ( localtime( time - 24*3600) )[3, 4, 5];
$yr += 1900;
$mon += 1;
my $str = sprintf '%4d-%02d-%02d', $yr, $mon, $day;
would give you the prefix string for your filename.
What about DST? ;-)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.
- Follow-Ups:
- Re: Date function
- From: boyd
- Re: Date function
- References:
- Date function
- From: K.J. 44
- Re: Date function
- From: boyd
- Date function
- Prev by Date: Re: Date function
- Next by Date: Re: Bareword errors?
- Previous by thread: Re: Date function
- Next by thread: Re: Date function
- Index(es):
Relevant Pages
|