Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: DateTime and hour 0

by tcf03 (Deacon)
on Apr 18, 2005 at 15:51 UTC ( [id://448928]=note: print w/replies, xml ) Need Help??


in reply to Re: DateTime and hour 0
in thread DateTime and hour 0

Thanks That seems to work better, Im just trying to zero-pad the day and num_to_month( $datetime->month ) isnt returning anything. But I get the idea. Thanks again.
Ted

Replies are listed 'Best First'.
Re^3: DateTime and hour 0
by Mr. Muskrat (Canon) on Apr 19, 2005 at 11:28 UTC
    Zero-padding is best done with printf or sprintf. I don't know where num_to_month is coming from (something you wrote?) but why not just use $datetime->month_name?

Log In?
Username:
Password:

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

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

    No recent polls found