Skip Menu |

This queue is for tickets about the Time-Simple CPAN distribution.

Report information
The Basics
Id: 34839
Status: resolved
Priority: 0/
Queue: Time-Simple

People
Owner: Nobody in particular
Requestors: RENEEB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mistake in documentation
In the SYNOPSIS you give this example: my $now = Time::Simple->new; my $nexthour = $now + 60; print "An hour from now is $nexthour.\n"; But that is not an hour from now, but *1 minute* To get the next hour you have to write my $now = Time::Simple->new; my $nexthour = $now + ( 60 * 60 ); print "An hour from now is $nexthour.\n";
Subject: Re: [rt.cpan.org #34839] Mistake in documentation
Date: Thu, 10 Apr 2008 19:46:02 +0100
To: bug-Time-Simple [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
Ah, thanks for spotting that. The module used to add minutes, but it was confusing, so I made it add seconds. RENEEB via RT wrote: Show quoted text
> Thu Apr 10 14:43:06 2008: Request 34839 was acted upon. > Transaction: Ticket created by RENEEB > Queue: Time-Simple > Subject: Mistake in documentation > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: RENEEB@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=34839 > > > > In the SYNOPSIS you give this example: > > my $now = Time::Simple->new; > my $nexthour = $now + 60; > print "An hour from now is $nexthour.\n"; > > But that is not an hour from now, but *1 minute* > > To get the next hour you have to write > > my $now = Time::Simple->new; > my $nexthour = $now + ( 60 * 60 ); > print "An hour from now is $nexthour.\n"; > > >
Thanks, docs fixed in next release.