ilyesdata / parsedatetime

Automatically exported from code.google.com/p/parsedatetime
Apache License 2.0
0 stars 0 forks source link

make the behaviour for parsing day-of-week configurable #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Say the current day is Thursday and you ask pdt to parse "Tuesday" -
currently pdt will return the next Tuesday (i.e. day+5) instead of the
current week's Tuesday (i.e. day-2)

This behaviour is evidently not shared by all users of pdt so we need to
make it something that can be configured

Original issue reported on code.google.com by bear42 on 19 Oct 2006 at 8:23

GoogleCodeExporter commented 8 years ago
Markku has suggested a third form - here they are again but in table format:

Current day marked as ***
Three possible returns marked as 1, 2 and 3

         Sun Mon Tue Wed Thu Fri Sat
week -1           1
current           2      ***
week +1           3

Currently pdt returns #3

Original comment by bear42 on 19 Oct 2006 at 8:33

GoogleCodeExporter commented 8 years ago
the issue_10 branch that Darshana worked on to implement this has been merged 
to the
trunk in revision #40

Original comment by bear42 on 24 Oct 2006 at 9:24

GoogleCodeExporter commented 8 years ago

Original comment by bear42 on 14 Feb 2007 at 7:22