On 2013-04-18 18:48, Uri Guttman wrote:
On 04/18/2013 03:13 AM, Dr.Ruud wrote:
If your box already is in that timezone, you can use localtime().
perl -Mstrict -we'
my @dt = reverse +(localtime)[0..5];
$dt[0] += 1900; # year
$dt[1] += 1; # month
printf qq{%s-%02d-%02d %02d:%02d:%
On 04/18/2013 03:13 AM, Dr.Ruud wrote:
If your box already is in that timezone, you can use localtime().
perl -Mstrict -we'
my @dt = reverse +(localtime)[0..5];
$dt[0] += 1900; # year
$dt[1] += 1; # month
printf qq{%s-%02d-%02d %02d:%02d:%02d\n}, @dt;
'
2013-04-18 09:09:22
i wo
On Thu, Apr 18, 2013 at 07:26:13AM -0300, Brian Fraser wrote:
> On Wed, Apr 17, 2013 at 10:24 PM, Brandon McCaig wrote:
> > Using the warnings pragma is good! You should also use the strict
> > pragma:
> >
> > use strict;
> >
> >
> This is not needed. Since 5.14, 'use VERSION' automatically enable
On Thu, Apr 18, 2013 at 2:24 AM, Brandon McCaig wrote:
> Looks to me like the problem is that you're not specifying the
> time zone for DateTime::now. Try this:
>
> my $date = DateTime->now(time_zone => $tz);
>
That's it. I was using the example in the synopsis without thinking:
http://search.cp
On Wed, Apr 17, 2013 at 10:24 PM, Brandon McCaig wrote:
> On Thu, Apr 18, 2013 at 01:00:38AM +0100, Ricardo Pais Oliveira wrote:
> > Hi!
>
> Hello,
>
> > I'm using DateTime::TimeZone to get my current time. Shouldn't daylight
> > saving time be handled by the DateTime module?
> >
> > In $date I'm
On 2013-04-18 02:00, Ricardo Pais Oliveira wrote:
I'm using DateTime::TimeZone to get my current time. Shouldn't daylight
saving time be handled by the DateTime module?
In $date I'm obtaining the time with less an hour than it should so I
believe DST is not being considered. How can I obtain th
On Thu, Apr 18, 2013 at 01:00:38AM +0100, Ricardo Pais Oliveira wrote:
> Hi!
Hello,
> I'm using DateTime::TimeZone to get my current time. Shouldn't daylight
> saving time be handled by the DateTime module?
>
> In $date I'm obtaining the time with less an hour than it should so I
> believe DST i
Hi!
I'm using DateTime::TimeZone to get my current time. Shouldn't daylight
saving time be handled by the DateTime module?
In $date I'm obtaining the time with less an hour than it should so I
believe DST is not being considered. How can I obtain the current time
regardless it's in DST mode or no