On Thu, 15 May 2014 07:53:01 -0500, Charles Srstka said:
>> 3. But sometimes the date of NSDataDetector is 12h ahead (again
>ignoring fractions of a second):
>>
>> "2014-05-15 07:52:18.658" → "2014-05-15 19:52:18 +0700"
>> "2014-05-14 05:59:46.490 +0700" → "2014-05-14 17:59:46.490 +0700"
>>
>>
On May 15, 2014, at 8:03 AM, Gerriet M. Denkmann wrote:
> I always use a 24-hour clock.
Your users may not, though. In the US, at least, 24-hour clocks are definitely
a minority.
> Is there a way, to make NSDataDetector aware of this fact? Some options I
> might set?
NSDataDetector doesn't a
On 15 May 2014, at 19:53, Charles Srstka wrote:
> On May 14, 2014, at 10:38 PM, Gerriet M. Denkmann
> wrote:
>
>>
>> On 15 May 2014, at 02:00, Ken Thomases wrote:
>>
>>>
>>> On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote:
>>>
Is there a way to obtain an NSDate object from a ca
On May 14, 2014, at 10:38 PM, Gerriet M. Denkmann wrote:
>
> On 15 May 2014, at 02:00, Ken Thomases wrote:
>
>>
>> On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote:
>>
>>> Is there a way to obtain an NSDate object from a casually entered user
>>> string, say: 1 1 2015 or 25 jul 15?
>>>
On 15 May 2014, at 02:00, Ken Thomases wrote:
>
> On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote:
>
>> Is there a way to obtain an NSDate object from a casually entered user
>> string, say: 1 1 2015 or 25 jul 15?
>>
>> I have looked at the various NSDateFormatter and NSDate API and can
On May 14, 2014, at 8:41 AM, Jonathan Mitchell wrote:
> Is there a way to obtain an NSDate object from a casually entered user
> string, say: 1 1 2015 or 25 jul 15?
>
> I have looked at the various NSDateFormatter and NSDate API and cannot spot
> what I am after.
You might try NSDataDetector w
On May 14, 2014, at 6:41 AM, Jonathan Mitchell wrote:
> Is there a way to obtain an NSDate object from a casually entered user
> string, say: 1 1 2015 or 25 jul 15?
There’s no easy way. You can create a whole bunch of format strings for every
exact format you expect, and then try to parse the
Is there a way to obtain an NSDate object from a casually entered user string,
say: 1 1 2015 or 25 jul 15?
I have looked at the various NSDateFormatter and NSDate API and cannot spot
what I am after.
Jonathan
___
Cocoa-dev mailing list (