Hi All,
How to get date and time in perl ? is there any function for that ?
Regards
Irfan Sayed
On 4/1/06, Irfan J Sayed [EMAIL PROTECTED] wrote:
Hi All,
How to get date and time in perl ? is there any function for that ?
Regards
Irfan Sayed
localtime() returns the current time in your timezone. When called in
scalar context it returns a string representation of the date and
time
Re: date and time in perl
On 4/1/06, Irfan J Sayed [EMAIL PROTECTED] wrote:
Hi All,
How to get date and time in perl ? is there any function for that ?
Regards
Irfan Sayed
localtime() returns the current time in your timezone. When called in
scalar context it returns a string
Hi,
Can you tell me exact command / syntax as i struggled lot but didn't
succeed so that i can store date,time in some variable.
Hi,you can use the 'strftime' which is coming from POSIX to get your time
format similar to Unix shell command.
for example,you could write:
use POSIX
Thanks Jelf
Regards
Irfan Sayed
Jeff Pang [EMAIL PROTECTED]
04/10/2006 06:11 PM
Please respond to
Jeff Pang [EMAIL PROTECTED]
To
beginners@perl.org
cc
Subject
Re: date and time in perl
Hi,
Can you tell me exact command / syntax as i struggled lot but didn't
succeed so that i
Irfan J Sayed schreef:
Can you tell me exact command / syntax [...]
so that i can store date,time in some variable.
See:
perldoc -f localtime
http://perlmeme.org/faqs/datetime/
--
Affijn, Ruud
Gewoon is een tijger.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hello,
Use this code according to your requirement.
#!/usr/bin/perl
$no=`date`;
print $no;
Regards
Nish
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe, e-mail: