Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: (jeffa) Re: DBI SQL Query Question

by count0 (Friar)
on Jan 11, 2002 at 23:02 UTC ( #138093=note: print w/ replies, xml ) Need Help??


in reply to (jeffa) Re: DBI SQL Query Question
in thread DBI SQL Query Question


Additionally, to get the zero-padding functionality of date(1)'s %m and %d, use sprintf().

my $month = sprintf ("%02d", (localtime)[4]+1); my $day = sprintf ("%02d", (localtime)[3]);

Two other options for formatting your date/time are: POSIX's strftime, and Date::Format.


Comment on Re: (jeffa) Re: DBI SQL Query Question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2015-07-04 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls