Hey u posted yours many times

cut paste the code below ( you may have to install Time::ParseDate , and 
POSIX

You can avoid POSIX if you can use the localtime directly



#!/usr/bin/perl

use Time::ParseDate;
use POSIX qw(strftime);

$ARGV[0]=~s/^(.*?)(\d\d:\d\d:\d\d).*$/$2 $1/;
print  strftime "%d/%m/%Y %H:%M", localtime(parsedate($ARGV[0]));



Chris Knipe wrote:
> Lo all,
> 
> How can I convert a date such as '18 Jun, 2002 at 11:00:00 (SAT)' into a
> DD/MM/YYYY HH:MM string?
> 
> I've been on google for quite some time now, and looked at quite a few CPAN
> stuff, but I can't seem to find anything converting that specific format?
> 
> --
> me
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to