Subject: | sedate doesn't set a date for printf? |
Date: | Wed, 24 Feb 2016 18:00:51 +0000 |
To: | "bug-Date-Manip [...] rt.cpan.org" <bug-Date-Manip [...] rt.cpan.org> |
From: | "Furst, Carl" <Carl.YamamotoFurst [...] mlb.com> |
Hello,
I’m working on a mac using OS X 10.10.5 using perl 5.18.2 and I just installed Date::Manip 6.52
I’ve been reading the config documentation and noticed that there is a way in the SetDate config docs to set the date/time for a different time zone as follows:
$date->config("setdate","now,ZONE”);
So If I do this as follows it should parse ‘now’ in the specified ZONE.
However when I do the following
my $date = new Date::Manip::Date;
$date->config("setdate", “now,gmt”);
And then printf:
$date->printf(“%Y%m%dT%H:%M:%S”)
I get the following error:
WARNING: [printf] Object must contain a valid date
And no date… Should this be setting the date to ‘now’ in GMT??
Thanks,
Carl Yamamoto-Furst
--
**********************************************************
MLB.com - Where Baseball is Always On