Skip Menu |

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

Report information
The Basics
Id: 46689
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.76
Fixed in: (no value)



Subject: weekday + time of day
Hello, It would be a great benefit to my current projects if the DTFN successfully parsed times like: Wednesday at 9pm Monday 3:16pm # no "at" Thursday at 8 I like way it parses times of the day as it is; however it would be awesome if prepending the weekday to the time of day does what I mean. Thanks, Jason
On Fri Jun 05 11:12:55 2009, jasonmay wrote: Show quoted text
> It would be a great benefit to my current projects if the DTFN > successfully parsed times like: > > Wednesday at 9pm
(parses with v0.76_01) Show quoted text
> Monday 3:16pm # no "at"
(does not parse with v0.76_01) Show quoted text
> Thursday at 8
(parses with v0.76_01) Show quoted text
> I like way it parses times of the day as it is; however it would be > awesome if prepending the weekday to the time of day does what I mean.
As indicated above, 2 out of 3 inputs parse here without error. Can you also give it a try with the latest dev release mentioned (except for the second input, where support for will be implemented shortly) and see whether the results satisfy your expectations? If not, I'd appreciate some further elaboration about what exactly has been expected (and almost as important: provide some more examples). Thanks,
Sorry, the "Fooday at footime" parses for me too. As of today (Thursday June 5) "Monday at 8" parses as Monday June 1 with prefer_future. What I was expecting was Monday June 8. Examples: perl -Ilib scripts/dateparse -p Show quoted text
dateparse> Monday at 8
01.06.2009 08:00:00 Show quoted text
dateparse> Tuesday at 8pm
02.06.2009 20:00:00 Show quoted text
dateparse> Wednesday at 4pm
03.06.2009 16:00:00
Implemented as of v0.76_02. Thanks!