perl and date manipulation
hello...
i'm writing a perl script which will take my http access logs and put them into a mysql database. so far everything is working create, except that rather than have the standard log form of "28/Mar/2002" i would like to just have the unix time stored (being the number of seconds that has elapsed since its creation), and work with the date from there. i know it's possible with PHP (which i'm very familiar with), however i'm trying to do this in perl as i'd like to become more experienced with perl. the PHP function is merely date("Ymd", time()) and can also be done in reverse order.
so does anyone know of a similar method in perl? thank you. :-)
|