Re: Time::localtime help

2005-05-16 Thread John W. Krahn
Matt Kopeck wrote: Hi, Hello, I have the following code: use strict; use Time::localtime; my $now = localtime; printf("The current date is %04d-%02d-%02d\n", $now->year+1900, ($now->mon)+1, $ now->mday); It outputs the date in such a format: "The current date is 2005-05-16". I would like the name

RE: Time::localtime help

2005-05-16 Thread Charles K. Clarkson
Matt Kopeck wrote: : use strict; : : use Time::localtime; : my $now = localtime; : : printf("The current date is %04d-%02d-%02d\n", $now->year+1900, : ($now->mon)+1, $ : now->mday); : : It outputs the date in such a format: "The current date is : 2005-05-16". I woul

Re: Time::localtime help

2005-05-16 Thread Peter Rabbitson
> printf("The current date is %04d-%02d-%02d\n", $now->year+1900, > ($now->mon)+1, $ > now->mday); > > It outputs the date in such a format: "The current date is 2005-05-16". > I would like the name of the month(ex. 'May') displayed instead of 05. > What is the easiest way to do this? > The mos

Time::localtime help

2005-05-16 Thread Matt Kopeck
Hi, I have the following code: use strict; use Time::localtime; my $now = localtime; printf("The current date is %04d-%02d-%02d\n", $now->year+1900, ($now->mon)+1, $ now->mday); It outputs the date in such a format: "The current date is 2005-05-16". I would like the name of the month(ex. 'May

Re: localtime help

2002-04-17 Thread Ramis
James Kelty wrote: > > Can someone point me to the perldoc's that can help me get the localtime > equivalent of the shell command /bin/date +'%Y%m%d' ? > > Thanks! > > -James > > James Kelty > Sr. Unix Systems Administrator > Everbase Systems > 541.488.0801 > [EMAIL PROTECTED] > use Time::loc

Re: localtime help

2002-04-16 Thread Jenda Krynicky
From: "James Kelty" <[EMAIL PROTECTED]> > Can someone point me to the perldoc's that can help me get the > localtime equivalent of the shell command /bin/date +'%Y%m%d' ? I believe you are looking for perldoc POSIX Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz

Re: localtime help

2002-04-16 Thread Jeff 'japhy' Pinyan
On Apr 16, James Kelty said: >Can someone point me to the perldoc's that can help me get the localtime >equivalent of the shell command /bin/date +'%Y%m%d' ? Either perldoc -f localtime and roll your own, or read perldoc POSIX and look for strftime(). It uses the same format strings as

localtime help

2002-04-16 Thread James Kelty
Can someone point me to the perldoc's that can help me get the localtime equivalent of the shell command /bin/date +'%Y%m%d' ? Thanks! -James James Kelty Sr. Unix Systems Administrator Everbase Systems 541.488.0801 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional