Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i get current system time?




On 30 May '08, at 11:40 PM, haresh vavdiya wrote:

I want to do one small clock for my ****** but i can't understand

If you keep using that word here even after repeated warnings, the moderator is going to ban you. I am not kidding.


I have read about NSDate, NSTimer but i can't understand how to
use that class for getting current system time?

[NSDate date] returns an object representing the current date/time.
If you want to display that, you'll need to convert it to a string using an NSDateFormatter.
Look at the "Date & Time Programming Guide".


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >How can i get current system time? (From: "haresh vavdiya" <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.