rmck wrote:
> I cant get localtime to print in "mm-dd- hh:mm:ss" , I keep
> getting it like so "Sun Dec 28 03:35:19 2003"
POSIX::strftime gives you complete control over the format.
use POSIX 'strftime';
print strftime('%m-%d-%Y %H:%M:%S', localtime), "\n";
perldoc POSIX
--
To unsubscr
> Hi
>
> I have the following script that sucks in a file and converts
> unix timestamp to human readable..
>
> The Goal is to do a search and replace of unix time to the
> format i need. But I'm just trying to get it to print in the
> format i need first...
>
> I cant get localtime to prin