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
Delivered-to: email@hidden
Delivered-to: email@hidden
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.