RAS109 has asked for the wisdom of the Perl Monks concerning the following question:
I get a year of 10 can someone please help, I'm desperate. Thank you in advance# get filename from yesterday ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time()-24*3600); $mon++; if(length($mon)==1) { $mon="0$mon"; } if(length($mday)==1) { $mday="0$mday"; } $yesterday = "\_$year$mon$mday.zip"; print "Need to get file $yesterday\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Date/Time
by vroom (His Eminence) on Jan 05, 2000 at 22:54 UTC | |
|
Two Quick Optimizations
by chromatic (Archbishop) on Jan 23, 2000 at 05:22 UTC | |
|
RE: Date/Time
by xeh007 (Sexton) on Jan 08, 2000 at 05:38 UTC |