Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl's time and MySQL's timestamp

by iguanodon (Priest)
on Feb 05, 2003 at 10:32 UTC ( #232785=note: print w/replies, xml ) Need Help??


in reply to Perl's time and MySQL's timestamp

If you use Date::Manip, you can set the Internal flag that tells it to return date-time strings without colons, which happens to be the same format that MySQL uses for timestamps:
use Date::Manip; Date_Init("Internal=1"); # No colons in dates, same as mysql my $end = ParseDate('today'); my $start = DateCalc('today', '- 5 days');

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://232785]
help
Chatterbox?
[Corion]: Meh. Some Open Source people get bought out by advertising firms to change their projects to include advertising. But nobody has approached me to buy out WWW::Mechanize ::$browser from me, to make the browsers launch an ad page ...
[Corion]: ... instead of about:blank, which the modules currently do at startup.
[Corion]: Maybe I'm too pricey. But I haven't received any offers at all ;-)
[Corion]: The ad hits from CPAN testers alone should bring in a pretty penny IMO. But maybe I misestimate the CPC that ads pay.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-07-24 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.