in reply to Perl Newbie
Try replacing this code with acquiring of the date you parsed from <data> tags ($j::date). You may need to parse and reformat the date, have a look at Date::Parse, localtime and strftime.my ( $dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks ) = stat($file); my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) + = localtime($mtime); # make a MySQL compatible date my $mysqlDate = strftime( "%F %T", $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Newbie
by zeroc00l (Initiate) on Aug 28, 2012 at 08:39 UTC | |
by aitap (Curate) on Aug 28, 2012 at 09:28 UTC |