Forum: DSL Tips and Tricks
Topic: MM/DD/YY to DD/MM/YY
started by: RoGuE_StreaK

Posted by RoGuE_StreaK on Sep. 06 2005,12:53
I noticed quite some time ago that the default DSL setup uses the MM/DD/YY date format in the fluxbox toolbar, as opposed to the DD/MM/YY format used by most(?) non-US countries, but forgot to follow it up with some investigation.

Well, I remembered again, and I think I've found the quick fix for those of us wanting to change the date format.  Just edit you /home/dsl/.fluxbox/init file, changing the line
Code Sample
session.screen0.strftimeFormat: %m/%d/%y %I:%M %p
Code Sample
session.screen0.strftimeFormat: %d/%m/%y %I:%M %p

Then just add this file to your backup for auto "deYankDateification"  :D

You can also change a heap of other time / date display options if you so desire, using the strftime syntax
< man strftime >

Posted by adssse on Sep. 06 2005,14:19
Very cool. I like the dd/mm/yy format better also.
Posted by SaidinUnleashed on Sep. 06 2005,14:51
Personally, I like the Aug 13, 2005 format.

Understandable by all, rather than confusing to any particular country.

Code Sample
session.screen0.strftimeFormat: %b %d, %Y %I:%M %p


Posted by mikshaw on Sep. 06 2005,15:43
SU: that's pretty close to what I have:
%a %b %d %I:%M

%a shows the abbreviated week day

Posted by RoGuE_StreaK on Sep. 07 2005,01:12
Quote (SaidinUnleashed @ Sep. 06 2005,10:51)
Personally, I like the Aug 13, 2005 format.
Understandable by all, rather than confusing to any particular country.

Yeah, I use the format "7/September/2005" when I do a "document last updated" on any sites I develop.  Actually naming the month removes any confusion as to which column could be day and which could be month.

Maybe the default DSL settings should use the abbreviated month?  (day can be anywhere, as JP said).

Oh, BTW, does anyone know of a "desktop calender" for linux, ie., a calender that sits on your wallpaper, like torsmo does?  Preferably with the ability to add notes/memos?
If so, any chance of getting an extension?

Posted by mikshaw on Sep. 07 2005,02:01
I'd looked for one quite a while ago, after getting accustomed to using desktop calendar in far no luck finding one.
Posted by Borderpatrol on Sep. 07 2005,20:48
I use the D/M/Y and im a yank. Not all nonYanks use it. :cool:
Posted by 9a6or on Sep. 12 2005,23:13
Is there any way to add a space to the beginning of the string?
Posted by mikshaw on Sep. 13 2005,00:57
Not at the beginning.  fluxbox/init uses whitespace as a separator between resources and values, so any spaces at the beginning would just be read as more whitespace.
Only thing i can suggest is to add something small, like a period, at the beginning of the string and put the spaces after the period.

You could also use something a bit more visually appealing to add space, like braces:
[   %a %b %d %I:%M   ]

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.