The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   System (http://hintsforums.macworld.com/forumdisplay.php?f=4)
-   -   Adding Date to Menubar's Time in Jaguar (http://hintsforums.macworld.com/showthread.php?t=5029)

davey 08-29-2002 10:08 PM

Hey, it appears to be working well on the menu bar. I did update the string slightly to remove one of the two spaces between am/pm and seconds:

%b %d %Y %a %1I:%M:%S%p

I did notice that this code change as affected other programs in funky ways. I use a program called Weather Pop. It has an icon in the menu bar which shows the temperature and other weather-related information. It just informed me that a temperature update was performed on:

Thu, Aug 29, 2002 Aug 29 2002 Thu 10:01 pm pm

Oh man! Apple could have made this simpler by just sticking the full date in the DATE and Time control panel as an option.

David and Bob - thank you so much for helping me out. Unless you know of any other options, I am going to stick with this for a while.

-David

dsk 08-29-2002 10:15 PM

Quote:

It just informed me that a temperature update was performed on:

Thu, Aug 29, 2002 Aug 29 2002 Thu 10:01 pm pm
Interesting. I did fear that there may be certain issues like this. Although, WeatherPop should be programmed to have an independent date formatting system. I suppose that it is currently set to simply take the current time format (i.e. the one we messed with) and slap the date on at the beginning and the AM/PM on at the end. Hopefully not many other developers use this method. You could write an e-mail to the WeatherPop people (http://www.glu.com I believe).

Does anyone know if there will be harmful effects associated with this method?

David

SpongeBob 08-30-2002 12:29 PM

I can't say for sure, but I wouldn't think so. I wouldn't however be surprised if there were other programs like WeatherPop that displayed the date in the new format. The string that was modified is a system wide parameter, so if you dink with the format you change it for everything. Other than that, I can really see no repercussions. I also use Weatherpop, but just noticed after reading the thread that it was using the new date format I installed yesterday. Frankly, Apple could fix this simply and easily by having the clock use its' own date string which apparently it did in earlier releases rather than reference the system wide setting.

nkuvu 08-30-2002 01:52 PM

Take a look at file modification dates in the Finder after updating the string.

I have no idea if those might be affected, but it wouldn't hurt to look.

dsk 08-30-2002 01:55 PM

They look fine, nkuvu:

Fri, May 24, 2002, 3:24 PM

David

davey 08-30-2002 03:07 PM

Hey David,

How would I get the time string to look like what you just posted?

Fri, May 24, 2002, 3:24 PM

%a, %b %d %Y, %1I:%M:%S %p

-David

dsk 08-30-2002 03:34 PM

Quote:

Originally posted by davey
Hey David,

How would I get the time string to look like what you just posted?

Fri, May 24, 2002, 3:24 PM

%a, %b %d %Y, %1I:%M:%S %p

-David
I think that should do it. One small detail you missed was the comma after %d.

David

tizzleBizzle 09-07-2002 12:40 AM

check it.
 
http://developer.apple.com/techpubs/...ToStrings.html

Tiburon 10-22-2003 03:59 PM

Quote:

Originally posted by SpongeBob
Wahoo, found it.

/Users/<name>/Library/Preferences/.GlobalPreferences.plist

I don't find this file in my library. How comes? (OSX.2.6)

dsk 10-22-2003 04:01 PM

the period in front of the file name indicates that it's invisible in the finder. use the terminal if you want to manipulate the file.

Tiburon 10-23-2003 05:06 AM

Thanks for reply. Even its an old thread its quite interesting

However: I dont find the <key>NSTime... entry in my .GlobalPreferences.plist File

How comes? Did Apple move this menubar clock entry?

geokker 09-28-2006 01:45 AM

I changed the menu bar time to date & time with the system preference panel on Tiger.

Irene 09-28-2006 12:14 PM

Quote:

Originally Posted by geokker (Post 324446)
I changed the menu bar time to date & time with the system preference panel on Tiger.

Yes, that's shows date and time but not day of week which I also like to have displayed. The application wClock will display all three in the Menu Bar, and in any color you choose, rather than only in black.

yellow 09-28-2006 12:44 PM

Quote:

Originally Posted by geokker (Post 324446)
I changed the menu bar time to date & time with the system preference panel on Tiger.

Your reply is nearly 3 years late. ;)

geokker 09-28-2006 01:54 PM

it was a weird struggle however. I felt somehow 'dirty' doing it.


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

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.