Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Creating a string for a date stamp

by danboo (Beadle)
on Sep 20, 2001 at 00:39 UTC ( [id://113469]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub get_time_stamp() {
       my @tan=Today_and_Now();
    ...
       return $stamp;
    }
    
  2. or download this
    sub get_time_stamp() {
       sprintf '%d%02d%02d%02d%02d', (Today_and_Now())[0..4];
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found