The time function returns the UNIX time in seconds since the epoch. Using this method also prevents spaces from being in the filename that would be there if you used localtime.$file = time() . "whatever.ext";
Might want to take a look at perlfunc.
Amel - f.k.a. - kel
In reply to Re: Date in filename
by dsb
in thread Date in filename
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |