Skip navigation.
 
mlRe: Displaying current time using NSCalenderDAte
FROM : mmalc crawford
DATE : Sat May 31 20:47:53 2008

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

Related mailsAuthorDate
mlDisplaying current time using NSCalenderDAte haresh vavdiya May 31, 13:22
mlRe: Displaying current time using NSCalenderDAte Andreas Mayer May 31, 15:53
mlRe: Displaying current time using NSCalenderDAte mmalc crawford May 31, 20:47