image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Closed Thread
 
Thread Tools
  #1  
Old November 20th, 2003, 12:27 PM
bobw's Avatar
The Late: SuperMacMod
 
Join Date: Mar 2001
Location: Phila,PA
Posts: 8,835
Thanks: 0
Thanked 3 Times in 1 Post
bobw has a spectacular aura aboutbobw has a spectacular aura about
[How To] Date & Time in Menu Bar

This is a tip from http://www.macosxhints.com;

10.3: Add the date to the menubar clock
*Thu, Nov 20 '03 at 11:10AM • from: jpkelly

I found a way to add the date to the menubar clock in Panther. Open ~/Library -> Preferences -> .GlobalPreferences.plist in your favorite text editor. Look for theAppleICUTimeFormatStrings section. In my file, it looked like this:
<key>AppleICUTimeFormatStrings</key>
<dict>
*<key>1</key>
*<string>h':'mm' 'a</string>
*<key>2</key>
*<string>h':'mm':'ss' 'a</string>
*<key>3</key>
*<string>h':'mm':'ss' 'a z</string>
*<key>4</key>
*<string>h':'mm':'ss' 'a z</string>

I found that modifying the <key>2</key> string changed my menu bar clock -- your mileage may vary. I changed the code so it lookes like this:
<key>2</key>
<string>d' 'h':'mm':'ss' 'a</string>

Note that I added d' ' right after the <string> tag. The d represents the date, while the two tick marks (which have a space between them) surround the separator. The result (robg adds: as seen on my screen):

I found that simply opening up the Date and Time Preference Pane will update the clock format, but you may need to disable/enable the clock to see the change. I only changed the <key>2</key> string. If this does not work for you, you may need to modify one of the other four keys or just modify all four. Note: making changes to the International formatting will overwrite your change.

[robg adds: I didn't have these keys in my preferences. A quick email exchange with jpkelly led to the solution -- open the International preference pane, click on Formats, and then click on Customize for the Times section. Don't change anything, just quit System Preferences. You should now be able to find the keys in your .GlobalPreferences file (in the Terminal, of course, as it's hidden in the Finder). This is probably the #1 most requested Panther hint that I've seen flow through my inbox ... thanks jpkelly!]
_________________________
__________________

Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code a system menu bar item? michaelsanford Software Programming & Web Scripting 5 October 2nd, 2003 12:10 PM
regular users cannot set date and time solrac Mac OS X System & Mac Software 0 August 12th, 2002 03:02 AM
Menu Bar Clock: AM & PM, not military time MDLarson Mac OS X System & Mac Software 4 April 15th, 2002 04:29 AM
I have completely lost time in the menu bar... liquidg3 Mac OS X System & Mac Software 2 November 30th, 2001 08:07 PM
The final menu bar solution! strobe Mac OS X System & Mac Software 33 April 10th, 2001 02:42 AM


All times are GMT -5. The time now is 01:05 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.