Re: How to Display a Time Interval


Shane Stanley
 

On 20 May 2019, at 4:20 am, Gary L. Wade <garywade@desisoftsystems.com> wrote:

After you get the components using the calendar you wish to use with your two dates, then call NSDateComponentsFormatter.
If he has a time interval, why not just use NSDateComponentsFormatter's -stringFromTimeInterval:?

Either way, be aware that NSDateComponentsFormatter doesn't cope with an interval of 2^32 or above. Which seems a bit extraordinary, given it didn't appear until macOS 10.10.

--
Shane Stanley <sstanley@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>

Join cocoa@apple-dev.groups.io to automatically receive all group messages.