• 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: How to get the time zone of a parsed date/time string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the time zone of a parsed date/time string?


  • Subject: Re: How to get the time zone of a parsed date/time string?
  • From: Charles Srstka <email@hidden>
  • Date: Sun, 03 Aug 2014 09:14:22 -0500

On Aug 2, 2014, at 11:57 PM, Shane Stanley <email@hidden> wrote:

> On 31 Jul 2014, at 8:27 am, Jens Alfke <email@hidden> wrote:
>
>> I want to avoid if possible a solution that involves manually scraping the string.
>
> NSDataDetector? NSTextCheckingTypeDate has a timeZone property.

NSDataDetector is probably better for detecting arbitrary date strings anyway. Doesn't NSDateFormatter expect you to specify the format the string will be in?

Charles

_______________________________________________

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


References: 
 >Re: How to get the time zone of a parsed date/time string? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: How to get the time zone of a parsed date/time string?
  • Next by Date: How do I get access to the control within a NSToolbarItem?
  • Previous by thread: Re: How to get the time zone of a parsed date/time string?
  • Next by thread: How do I get access to the control within a NSToolbarItem?
  • Index(es):
    • Date
    • Thread