• 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: 12 hr vs 24 hr time display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 12 hr vs 24 hr time display


  • Subject: Re: 12 hr vs 24 hr time display
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 03 Jan 2017 23:54:27 -0600

OK.  All that NSLocale stuff seemed like "The right way to do it™" but…

Let's see if this gets you what you want.

Read this file:

~/Library/Preferences/
com.apple.menuextra.clock.plist

And you'll see…

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<string>EEE h:mm </string>
</plist>


Or

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<string>EEE h:mm a</string>
</plist>

Or

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<string>EEE H:mm</string>
</plist>

The differences here are:

EEE h:mm – 12 hour clock, no AM/PM shown
EEE h:mm a – 12 hour clock, AM/PM shown
EEE H:mm – 24 hour clock

Hope that helps.

- Z
_______________________________________________

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


  • Follow-Ups:
    • Re: 12 hr vs 24 hr time display
      • From: Sandor Szatmari <email@hidden>
References: 
 >12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: "Gary L. Wade" <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: "Gary L. Wade" <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)

  • Prev by Date: Re: 12 hr vs 24 hr time display
  • Next by Date: Using of NSTableView tableViewSelectionDidChange Notification
  • Previous by thread: Re: 12 hr vs 24 hr time display
  • Next by thread: Re: 12 hr vs 24 hr time display
  • Index(es):
    • Date
    • Thread