CC: | saxguard9-cpan [...] yahoo.com, wcyoung [...] buffalo.edu |
Subject: | Bugs In Time::Timestamp 1.01 |
Date: | Sun, 7 Dec 2008 20:22:53 -0500 |
To: | bug-Time-Timestamp [...] rt.cpan.org |
From: | "Joshua Gatcomb" <joshua.gatcomb [...] gmail.com> |
Wes,
Tonight on #perl IRC (freenode), someone was having problems with
Time::Timestamp. I guessed that the problem was that it relied on an
old version of DateTime without trying it. After trying it, I am
quite convinced there are a number of problems:
1. The docs imply that 'ts' is an optional parameter that will
default to time() but the source says otherwise (dies if not present)
2. The following code blows up
use Time::Timestamp;
my $t = Time::Timestamp->new(ts => time());
This is using the latest version of DateTime (.4501). I don't know
what the person needed this for - he left after I told him the problem
wasn't his code. I see from your Makefile that you tested on DateTime
0.30 - it is likely a quick fix. Sorry I didn't write a patch - I was
lazy.
Cheers,
Joshua Gatcomb
a.k.a. Limbic Region