• 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
Current Hour & Minutes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Current Hour & Minutes


  • Subject: Current Hour & Minutes
  • From: محمد الركيان <email@hidden>
  • Date: Sun, 8 Apr 2007 23:15:58 +0300

Hi...


Hmm, this look easy, but I don't know why it doesn't work with me !!!

All what I need is the current hour & minutes as int.






====== ONE OF MY TRYING =======


I use NSDate and NSCalendar and some of the out resource classes, : ( but I didn't get what I want .


====== ONE OF MY TRYING =======

I use this: http://theocacao.com/document.page/389
It look like useful but when I do:
NSLog(@"+currentHour: %i", [THCalendarInfo currentHour]);

It show me the current hour, BUT when I do:
int currentHour = [[NSString stringWithFormat:@"%i",[THCalendarInfo currentHour]] intValue];


currentHour valuable will get zeros. !!!
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Current Hour & Minutes
      • From: Scott Stevenson <email@hidden>
    • Re: Current Hour & Minutes
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Multiple developers and nib files
  • Next by Date: Re: How to make NSWindow redraw vacated rects "ifNeeded"?
  • Previous by thread: Re: stringWithContentsOfURL:encoding:error weirdness
  • Next by thread: Re: Current Hour & Minutes
  • Index(es):
    • Date
    • Thread