• 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: Displaying current time using NSCalenderDAte
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying current time using NSCalenderDAte


  • Subject: Re: Displaying current time using NSCalenderDAte
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 31 May 2008 11:47:53 -0700


On May 31, 2008, at 4:22 AM, haresh vavdiya wrote:

I have successfully get current time but now i want to to digital
clock but for that i need to have current minute and hours, so how can i get
this?
I found some method of NSCalenderDate which give us hours and
minutes i can't get current time and date it display 2001 jan 1


Use of NSCalendarDate strongly discouraged. It is not deprecated yet, however it may be in the next major OS release after Mac OS X v10.5. For calendrical calculations, you should use suitable combinations of NSCalendar, NSDate, andNSDateComponents, as described in Calendars in Dates and Times Programming Topics for Cocoa <http://developer.apple.com/documentation/Cocoa/Conceptual/DatesAndTimes/Articles/dtCalendars.html#//apple_ref/doc/uid/TP40003470-DontLinkElementID_2 >.

mmalc

_______________________________________________

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: 
 >Displaying current time using NSCalenderDAte (From: "haresh vavdiya" <email@hidden>)

  • Prev by Date: Re: Finding the largest value in an NSTreeController?
  • Next by Date: Re: Finding the largest value in an NSTreeController?
  • Previous by thread: Re: Displaying current time using NSCalenderDAte
  • Next by thread: runloops and NSURLConnection
  • Index(es):
    • Date
    • Thread