• 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
Best way to parse a time today?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best way to parse a time today?


  • Subject: Best way to parse a time today?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 12 Oct 2011 18:30:47 -0700

I have a situation where I have to parse times like "14:50 PDT". If I just set up an NSDateFormatter with dateFormat = @"HH:mm z", I end up with a time of day in 1970.

What's the best way to get it to give me that time of day today?

Thanks,
Rick

_______________________________________________

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: Best way to parse a time today?
      • From: Roger Dalal <email@hidden>
  • Prev by Date: Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow
  • Next by Date: Re: Best way to parse a time today?
  • Previous by thread: Cocoaheads Lake Forest meeting CANCELLED for 10/12
  • Next by thread: Re: Best way to parse a time today?
  • Index(es):
    • Date
    • Thread