Perl: the Markov chain saw | |
PerlMonks |
Convert apache log date/time to sqlby hallikpapa (Scribe) |
on Mar 31, 2009 at 18:42 UTC ( [id://754500]=perlquestion: print w/replies, xml ) | Need Help?? |
hallikpapa has asked for the wisdom of the Perl Monks concerning the following question:
I have an apache log that stores date/time like this (which is also how it looks in my $var; square brackets and all):
I am attempting to use Date::Parse. http://search.cpan.org/~gbarr/TimeDate-1.16/lib/Date/Parse.pm But it doesn't seem to support the format I am in. I am horrible and regular expressions and need some help/suggestions at converting the date above. This is so I can compare dates from a table that stores dates like: 2009-03-27 14:18:40 <edit> Nevermind. I made a mistake. Didn't mean to post this, sorry. Can delete it.
Back to
Seekers of Perl Wisdom
|
|