Praful Bajaria wrote:
>
> All,
Hello,
> How would I get ddmmyyyy format of time in a variable.
> Once I get this format (value in variable),I would
> like to append to a file.
>
> $currtime = time();
> @currtime = gmtime($currtime);
> print " @currtime \n ";
>
> but the above code doen't give me yyyy.
use Time::Format qw(%time);
print "Today is $time{'ddmmyyyy'}\n";
http://search.cpan.org/author/ROODE/Time-Format-0.03/
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]