• 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: getting the system's time format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the system's time format


  • Subject: Re: getting the system's time format
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 18 Nov 2003 02:17:10 -0800

Hello...

The documentation you want to look at is the Foundation reference, for the NSUserDefaults class. There are a number of default preference keys that provide basic information about how the user's system is set up.

@"NSTimeFormatString" for example, which should allow you to distinguish between 12 and 24 hour clocks...

Louis



How do I determine whether the computer running my program uses a 12 or 24 hour clock format? I want to check this and then remove or add a pair of radio buttons designating AM and PM from my user interface depending on the system time format.

Thanks for pointing me in the right direction. I've tried scanning the documentation, but don't know where to start to look. (My copy of Help Viewer application crashes on search which makes it hard to do lookups!)

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSNumber pointerValue
  • Next by Date: Re: Copyrights, Interfaces, etc. (attn: Apple Reps)
  • Previous by thread: getting the system's time format
  • Next by thread: Re: getting the system's time format
  • Index(es):
    • Date
    • Thread