• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding minutes to display time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding minutes to display time


  • Subject: Re: Adding minutes to display time
  • From: David Duncan <email@hidden>
  • Date: Tue, 08 Dec 2015 12:54:25 -0800

> On Dec 8, 2015, at 12:14 PM, Eric E. Dolecki <email@hidden> 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 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).

>
> I'll be googling too.
>
> Thanks,
> Eric
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

--
David Duncan


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding minutes to display time
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >Adding minutes to display time (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Adding minutes to display time
  • Next by Date: Re: LSSharedFIleList API deprecated
  • Previous by thread: Adding minutes to display time
  • Next by thread: Re: Adding minutes to display time
  • Index(es):
    • Date
    • Thread