heena s wrote:
> i need to timestamp the datas.
> i am usingperl in windows machine.
>  
> tell me how print the time in file.

Do you want just the time or the complete date?

my $today = localtime;

print "$today\n";


Or if you need better formatting:

use POSIX 'strftime';

my $today = strftime '%A, %d %B %Y %T', localtime;

print "$today\n";



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to