• 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: How can i get current system time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i get current system time?


  • Subject: Re: How can i get current system time?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 30 May 2008 23:46:55 -0700


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:

This email sent to email@hidden

References: 
 >How can i get current system time? (From: "haresh vavdiya" <email@hidden>)

  • Prev by Date: Re: super respondsToSelector
  • Next by Date: Re: How can i get current system time?
  • Previous by thread: How can i get current system time?
  • Next by thread: Re: How can i get current system time?
  • Index(es):
    • Date
    • Thread