All of lore.kernel.org
 help / color / mirror / Atom feed
From: Beolach <beolach@comcast.net>
To: Peter <heisspf@skyinet.net>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Black Box Time
Date: Wed, 11 Feb 2004 00:27:08 -0700	[thread overview]
Message-ID: <4029D94C.4030907@comcast.net> (raw)
In-Reply-To: <20040211065922.D4D881C954@heisspf>

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

  reply	other threads:[~2004-02-11  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-11  6:59 Black Box Time Peter
2004-02-11  7:27 ` Beolach [this message]
2004-02-12  1:40   ` Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4029D94C.4030907@comcast.net \
    --to=beolach@comcast.net \
    --cc=heisspf@skyinet.net \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.