Black Box Time
Hi,
does any body know hot to tweak Blackbox to display time on the toolbar in 24 hour format instead of am and pm?
Thanks
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Edit your ~/.blackboxrc file so that it has a line like this:
session.screen0.strftimeFormat %H:%M
--------<From the blackbox (1) manpage>-------- session.screen<num>.strftimeFormat [string]
A C language date format string, any combination of specifiers can be used. The default is %I:%M %p which generates a 12 hour clock with minutes and an am/pm indicator appropriate to the locale.
24 hours and minutes %H:%M
12 hours and minute %I:%M %p
month/day/year %m/%d/%y
day/month/year %d/%m/%y
Default is hours:minutes am/pm
see
strftime 3
for more details.
--------</From the blackbox (1) manpage>--------
Note that rather than %H:%M, you could use any combination of strings from the strftime (3) manpage. My .blackboxrc has this line:
session.screen0.strftimeFormat: %a, %d %b %Y %R
where %a = The abbreviated weekday name according to the current locale, %d = The day of the mont as a decimal number (range 01 to 31) %b = The abbreviated month name according to the current locale %Y = The year as a decimal number including the century
%R = The time in 24 hour notation (%H:%M)
Also note that in blackbox you don't want the clock to include the seconds, as blackbox only updates it once a minute.
Also also note that, if by some strange freaky circumstance you don't have the strftime() function, you would use different options, but I really doubt that you wouldn't have it.
HTH,
Conway S. Smith
Quoted 5 lines · Peter
Hi,
does any body know hot to tweak Blackbox to display time on the toolbar in 24 hour format instead of am and pm?
Thanks
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks!
You must have a different man blackbox then mine. It only mentions:
session.screen0.strftimeFormat:
This adjusts the way the current time is displayed in the tool-
bar. The strftime(3) format is used. The default value is:
%I:%M %p
I had check that and only realized now that strftime refers to another man page.
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs