• 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
Date and Time Conversion with TimeZone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Date and Time Conversion with TimeZone


  • Subject: Date and Time Conversion with TimeZone
  • From: email@hidden
  • Date: Tue, 1 Jul 2008 13:20:17 -0400

Hello,

I have a date event returned as a date time string from a feed in the
following format,

"Tue 01 Jul 2008 15:00:00 +0100"

I'm assuming this is GMT plus one hour,  I'd like to convert this string to
the to a more user friendly date time string such as,

"Today at 9:00am" or "Tue Jul 01, 2008 9:00am"

that would take into account the current Time Zone setting of the Mac
displaying the date event.  I've looked at the NSDateFormatter and
NSCalendarDate, but didn't see anything that takes into account the Time
Zone setting on the current Mac.  Does anyone know of where I might find or
have a sample of a code snippet that does something similar to this?

Thank you,
Wayne

_______________________________________________

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: Date and Time Conversion with TimeZone
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Correct Order for CFRelease-ing CFNetwork Refs?
  • Next by Date: RE: Newbie question: Timers
  • Previous by thread: Re: Flowcharts in Cocoa
  • Next by thread: Re: Date and Time Conversion with TimeZone
  • Index(es):
    • Date
    • Thread