Re: Natural language date entry problems
Re: Natural language date entry problems
- Subject: Re: Natural language date entry problems
- From: Dave Hayden <email@hidden>
- Date: Mon, 19 Dec 2005 18:08:22 -0800
On Dec 14, 2005, at 9:42 PM, Gideon King wrote:
I enter I expected I got
Today Thursday, 15 December 2005 Thursday, 15 December 2005
day before yesterday Tuesday, 13 December 2005 Wednesday, 14
December 2005
day after tomorrow Saturday, 17 December 2005 Friday, 16 December 2005
a month from today Sunday, 15 January 2006 Thursday, 15 December 2005
next tuesday Tuesday, 20 December 2005 Tuesday, 20 December 2005
So out of 5 trials, 2 came out as expected, and the three that
didn't work were explicitly examples taken from Apple's documentation.
dateWithNaturalLanguageString: just ignores the words it doesn't
understand, so "day after tomorrow" is "blah blah tomorrow" is
"tomorrow" to NSDate.
Very, very confusing when you don't realize what's going on.
-D
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden