Re: A localtime question

2002-07-14 Thread Connie Chan
> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst); > ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); why not combine the 2 line as : my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); > $year+=1900; > $date = $year.$mday.$mon; > >

Re: A localtime question

2002-07-13 Thread Steve
Thanks That worked perfectly. On Saturday 13 July 2002 17:50, George Schlossnagle wrote: > do > > $date = sprintf("%04d%02d%02d", $year,$mday,$mon); > > btw, ddmm is not sortable, you may want to use mmdd. > > George > > On Saturday, July 13, 2002, at 05:38 PM, Steve wrote: > > I have th

Re: A localtime question

2002-07-13 Thread George Schlossnagle
do $date = sprintf("%04d%02d%02d", $year,$mday,$mon); btw, ddmm is not sortable, you may want to use mmdd. George On Saturday, July 13, 2002, at 05:38 PM, Steve wrote: > I have this snippet of code: > > > use warnings; > use strict; > use diagnostics; > my $date; > my $base_url; > my

A localtime question

2002-07-13 Thread Steve
I have this snippet of code: use warnings; use strict; use diagnostics; my $date; my $base_url; my $full_url; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year+=1900; $date = $year.$mday.$mon; $date is gettin