* Black Box Time
@ 2004-02-11 6:59 Peter
2004-02-11 7:27 ` Beolach
0 siblings, 1 reply; 3+ messages in thread
From: Peter @ 2004-02-11 6:59 UTC (permalink / raw)
To: linux-newbie
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
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Black Box Time
2004-02-11 6:59 Black Box Time Peter
@ 2004-02-11 7:27 ` Beolach
2004-02-12 1:40 ` Peter
0 siblings, 1 reply; 3+ messages in thread
From: Beolach @ 2004-02-11 7:27 UTC (permalink / raw)
To: Peter; +Cc: linux-newbie
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
Peter wrote:
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Black Box Time
2004-02-11 7:27 ` Beolach
@ 2004-02-12 1:40 ` Peter
0 siblings, 0 replies; 3+ messages in thread
From: Peter @ 2004-02-12 1:40 UTC (permalink / raw)
To: Beolach; +Cc: linux-newbie
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
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-12 1:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-11 6:59 Black Box Time Peter
2004-02-11 7:27 ` Beolach
2004-02-12 1:40 ` Peter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.