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