Skip Menu |

This queue is for tickets about the DateTime-Format-Natural CPAN distribution.

Report information
The Basics
Id: 43417
Status: resolved
Priority: 0/
Queue: DateTime-Format-Natural

People
Owner: Nobody in particular
Requestors: jason.a.may [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.74
  • 0.74_04
Fixed in: (no value)



Subject: prefer_future related suggestion
I checked for this in both the normal and the developer release. What would be awesome is support for having DTFN push the time by a day if, for instance, it was 5pm and you specify 3pm, without specifying any other day. A specific scenario: DateTime->now; # 2/14/09 at 3pm # I would like this to result in 2/15/08 at 7am instead of # 7am on the same day (which is in the past) DateTime::Format::Natural ->new(prefer_future => 1) ->parse_datetime("7am"); If it can be done, I greatly appreciate it. Best, Jason
On Thu Feb 19 01:07:25 2009, jasonmay wrote: Show quoted text
> If it can be done, I greatly appreciate it.
Yes, it certainly can be done; FWIW, I patched my working copy now, but I intend to wait a few days before pushing a development version. Thanks, Steven
Resolved as of v0.75_01.