skip navigation

www.Hilands.com


Content:: BlackBox for Windows - Time Display

BlackBox for Windows Time Display

BlackBox for windows, or bb4win, comes with a handful of modules to make the interface much more user centric. One of the modules the BBLeanBar displays a windows start bar like interface displaying your current open applications, system tray, and a time and date display.

The default time and date display shows the time in military times. Here you will find out how to change the format of the date and time displayed. bbleanbar time (military)

Edit bbleanbar.rc
Knowing that this is the BBLeanBar module we can easily hunt down the configuration which will be in
<installation folder>pluginsbbLeanBarbbleanbar.rc
Use your favorite editor to open the bbleanbar.rc file.

Search the file for
bbLeanBar.strftimeFormat: %d %a %#H:%M
add a pound symbol (#) to the front of that line, which will "comment out" that line hiding it from the blackbox engine.

We will be converting the display to "Weekday name abbreviation, Numerical Date, Month abbreviation, Hours in 12-hour format, minutes, AM/PM indicator" by changing the time format variable to "%a %d %b %I:%M %p". Please view the display reference at the bottom of this page for more options. We will add the following below the line we found.
bbleanBar.strftimeFormat: %a %d %b  %I:%M %p
All of the modifications should look like the following.
bbLeanBar.strftimeFormat: %d %a %#H:%M
bbleanBar.strftimeFormat: %a %d %b  %I:%M %p


Restart BlackBox
You will now need to restart the BlackBox engine.
restart bb4win
Right click on the desktop and scroll down to Blackbox, then select the Restart option.


Result
The final result should look like the following
bbleanbar time


References
Time Format :
%a = Abbreviated weekday name,
%A = Full weekday name
%b = Abbreviated month name,
%B = Full month name
%c = Date and time representation appropriate for locale
%d = Day of month - numerical (01 â?� 31)
%H = Hour in 24-hour format (00 â?� 23)
%I = Hour in 12-hour format (01 â?� 12)
%j = Day of year - numerical (001 â?� 366)
%m = Month - numerical (01 â?� 12)
%M = Minute - numerical (00 â?� 59)
%p = Current locale's A.M./P.M. indicator for 12-hour clock
%U = Week of year - numerical - with Sunday as first day of week (00 â?� 53)
%w = Weekday - numerical (0 â?� 6; Sunday is 0)
%W = Week of year - numerical - with Monday as first day of week (00 â?� 53)
%x = Date representation for current locale
%X = Time representation for current locale
%y = Year without century (00 â?� 99)
%Y = Year with century
%z, %Z = Time-zone name|abbreviation; no characters if time zone is unknown
%#d, %#H, %#I, %#j, %#m, %#M, %#S, %#U, %#w, %#W, %#y, %#Y -> Remove leading zeros (if any)

Characters that do not "begin" with % are copied unchanged to the output buffer.


The default toolbar date|time display is:
# %H:%M | %a %#d %b


Links :
http://www.xyd64.dial.pipex.com/blackbox/bbLeanBar.htm
http://bb4win.sourceforge.net/basics.html
Last Modified: 2010-09-26