Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Building a data Hierarchy

by graff (Chancellor)
on Mar 21, 2007 at 02:01 UTC ( [id://605779]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @TimeArray = localtime(time);
    my $year = sprintf ("%04d",$TimeArray[5]+1900);
    ...
    my $hour = sprintf ("%02d",$TimeArray[2]);
    my $minute = sprintf ("%02d",$TimeArray[1]);
    my $datestamp =  "$year"."_"."$monthasnum"."_"."$day"."_"."$hour" ."_"
    +."$minute" ;
    
  2. or download this
    use POSIX;
    
    my $datestamp = strftime( "%Y_%m_%d_%H_%M", localtime );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://605779]
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-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found