Re: Adding minutes to display time

2015-12-08 Thread David Duncan
Moving the > slider adjusts the 7:30 AM display. So I am adding minutes to the display > time. What's the best way to do this? I am using Swift. NSCalendar and NSDateComponents are still the best way to do these types of time modifications (with NSDateFormatter for display).

Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
Hey all, I am being supplied a time (not day specific). Say "7:30 AM" - as a string. Could be PM. I need to make a slider with a range of 1 minute to 120 mins. Moving the slider adjusts the 7:30 AM display. So I am adding minutes to the display time. What's the best way to do this?

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
s. > > > > > On Tue, Dec 8, 2015 at 3:54 PM David Duncan <david.dun...@apple.com> > wrote: > >> >> > On Dec 8, 2015, at 12:14 PM, Eric E. Dolecki <edole...@gmail.com> >> wrote: >> > >> > Hey all, >> > >> > I am

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
t; wrote: > > > > Hey all, > > > > I am being supplied a time (not day specific). Say "7:30 AM" - as a > string. > > Could be PM. > > > > I need to make a slider with a range of 1 minute to 120 mins. Moving the > > slider adjusts the 7:30 AM

Re: Adding minutes to display time

2015-12-08 Thread Greg Parker
> On Dec 8, 2015, at 2:04 PM, Eric E. Dolecki wrote: > > I tried an extension I found. It's off by 5 hours... > > extension NSDate > { >convenience >init(dateString:String) { >let dateStringFormatter = NSDateFormatter() >dateStringFormatter.calendar

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
can <david.dun...@apple.com > <mailto:david.dun...@apple.com>> wrote: > > > On Dec 8, 2015, at 12:14 PM, Eric E. Dolecki <edole...@gmail.com > > <mailto:edole...@gmail.com>> wrote: > > > > Hey all, > > > > I am being supplied a time (