Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Timestamps

by wufnik (Friar)
on Jun 23, 2004 at 22:07 UTC ( [id://369190]=note: print w/replies, xml ) Need Help??


in reply to Timestamps

simple code for a YYYYMMDDHHMMSS time stamp follows...
use Time::localtime; my $tm = localtime; my $timestamp = sprintf("%04d%02d%02d%02d%02d%02d", $tm->year+1900, ($tm->mon)+1, $tm->mday, $tm->hour, $tm->min, $tm->sec);
note irritating little additions to deal with year/month.

all the best,
...wufnik

-- in the world of the mules there are no rules --

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found