• 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: creating NSCalendarDate with a specific time zone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating NSCalendarDate with a specific time zone


  • Subject: Re: creating NSCalendarDate with a specific time zone
  • From: Lon Giese <email@hidden>
  • Date: Thu, 11 May 2006 15:46:36 -0700

Look at NSTimeZone The class also permits you to set the default time zone within your application (setDefaultTimeZone:). Looks like what you want


On May 11, 2006, at 3:30 PM, Julio Cesar Silva dos Santos wrote:

Unless I am not getting what you want, you can create an NSCalendarDate and then set the time zone using setTimeZone. Take a look at NSCalendarDate and NSTimeZone in Developer's documentation.


Julio Cesar Santos email@hidden eMac 1GHz ComboDrive 512MB RAM Linux User #359973


On 11/05/2006, at 18:47, stephen joseph butler wrote:

I'm working with LDAP and I would like to create an NSCalendarDate
with an LDAP timestamp. The format of LDAP timestamps is
"%Y%m%d%H%M%SZ" (or "YYYYmmddHHMMSSZ"). The 'Z' on the end is the
military code for GMT.

My problem: how do I create an NSCalendarDate with the proper time
zone set? Nothing in the format strings (that I've read) indicates
that it can handle the single letter time zones. I'm not really
worried about supporting zones other than Z/GMT, so if I could create
NSCalendarDates in only that time zone then I'd be happy. What I can't
do, however, is change the default time zone.

Suggestions? I'm surprised that NSCalendarDate doesn't have a
dateWithString:calendarFormat:timeZone: message.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: creating NSCalendarDate with a specific time zone
      • From: "stephen joseph butler" <email@hidden>
References: 
 >creating NSCalendarDate with a specific time zone (From: "stephen joseph butler" <email@hidden>)
 >Re: creating NSCalendarDate with a specific time zone (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: Re: creating NSCalendarDate with a specific time zone
  • Next by Date: Re: question about classes, I think
  • Previous by thread: Re: creating NSCalendarDate with a specific time zone
  • Next by thread: Re: creating NSCalendarDate with a specific time zone
  • Index(es):
    • Date
    • Thread