Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

Re^4: Create a search by date in a unix timestamp data

by maicon1121 (Initiate)
on May 11, 2012 at 13:52 UTC ( #970023=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Create a search by date in a unix timestamp data
in thread Create a search by date in a unix timestamp data

Ok, now, look at my code, in the first post. In my select, i save the "timestamp" value in the var "$timestamp", and list it in "while", my question is, how to print this twice, 1 with date, and 1 with hour?


Comment on Re^4: Create a search by date in a unix timestamp data
Re^5: Create a search by date in a unix timestamp data
by Anonymous Monk on May 11, 2012 at 13:57 UTC

    Ok, now, look at my code, in the first post. In my select, i save the "timestamp" value in the var "$timestamp", and list it in "while", my question is, how to print this twice, 1 with date, and 1 with hour?

    Really? If that is your question, you write

    my $timestamp = '2012-05-11 06:55:36';

    How do I print $timestamp twice?

    The answer is  print $timestamp, $timestamp;

    Does that answer your question?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2013-05-18 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (393 votes), past polls