Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Date in Filename

by cciulla (Friar)
on May 19, 2003 at 16:10 UTC ( [id://259197]=note: print w/replies, xml ) Need Help??


in reply to Date in Filename

Try hitting "perldoc -f localtime".

For example,

use POSIX qw(strftime); $now_string = strftime "error%Y-%m-%d.txt", localtime; print "$now_string\n";

Update: I gotta learn to type faster. :)

Update: Noticed a bug.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://259197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found