Re: Displaying a scaling, relative time or date

2015-01-08 Thread Jens Alfke
On Jan 8, 2015, at 6:43 AM, Gary L. Wade garyw...@desisoftsystems.com wrote: When it comes to any localized date or number formatters, see if ICU supports it, especially the included version on the earlier OS you need to support. If not but a later one does, you could just include it in

Re: Displaying a scaling, relative time or date

2015-01-08 Thread Gary L. Wade
When it comes to any localized date or number formatters, see if ICU supports it, especially the included version on the earlier OS you need to support. If not but a later one does, you could just include it in your app. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Jan 7,

Displaying a scaling, relative time or date

2015-01-07 Thread Graham Cox
I want a label in my interface to display a relative time using a sensible approximate scale depending on the value. I'm not sure if I can use NSDateFormatter for this - it seems it's a bit too fixed in using only the units you assign. For example, if the value is less than a minute, it should

Re: Displaying a scaling, relative time or date

2015-01-07 Thread Ken Thomases
On Jan 7, 2015, at 6:18 PM, Graham Cox graham@bigpond.com wrote: I want a label in my interface to display a relative time using a sensible approximate scale depending on the value. I'm not sure if I can use NSDateFormatter for this - it seems it's a bit too fixed in using only the

Re: Displaying a scaling, relative time or date

2015-01-07 Thread Graham Cox
On 8 Jan 2015, at 11:52 am, Ken Thomases k...@codeweavers.com wrote: If you can require 10.10 or iOS 8, there's a new class for this: NSDateComponentsFormatter. There's no class reference for it yet. It's described in the Foundation release notes