Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Creating a string for a date stamp

by danboo (Beadle)
on Sep 20, 2001 at 00:39 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-08-15 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?