12h/24h clock??? Thread last updated on 2005-08-23 21:54:14

Posted by member 104928 on 2004-02-15 09:27:41

i use the Glaze theme and the "trayclock" is 12h and i want it to be 24h how do i change?? :((((

Posted by member 1 on 2004-02-15 12:43:21 link

edit your config file and change, probably the label config, from 12 hour to 24 hour.

Posted by member 104928 on 2004-02-15 14:31:44 link

hmm could'nt find something in the base.rc (which in the label config is in ) :|

Posted by member 104928 on 2004-02-15 14:38:08 link

is it this code i'll change? and what should i change too?
DateTimeLabelText "[date('h')]:[date('nn')] [date('am/pm')]\n[date('ddd')] [date('mmm')] [date('d')]"

Posted by member 7 on 2004-02-15 16:23:44 link

Check Litestep\Docs. It should contain label's documentation.

Posted by member 104928 on 2004-02-15 19:11:23 link

i've already checked the docs to labels but could'nt found something...

Posted by member 1 on 2004-02-16 00:33:06 link

its in there

Posted by member 104928 on 2004-02-16 07:12:06 link

but how does it look?

Posted by member 2112 on 2004-02-22 06:42:17 link

from label.txt

The [date], [time], and [uptime] data sources can optionally take a format
as a parameter. The following character sequences will be interpreted in
the format (anything else is included verbatim):

m month (1-12)
mm month with leading zero (01-12)
mmm abbreviated month name (Jan, Feb, etc)
mmmm full month name (January, February, etc)
d day (1-31)
dd day with leading zero (01-31)
ddd abbreviated weekday name (Sun, Mon, etc)
dddd full weekday name (Sunday, Monday, etc)
yy 2-digit year
yyyy 4-digit year
h hour (1-12)
hh hour with leading zero (01-12)
i hour (0-23)
ii hour with leading zero (00-23)
n minute (0-59)
nn minute with leading zero (00-59)
s second (0-59)
ss second with leading zero (00-59)
am/pm am/pm indicator

Posted by member 1 on 2004-02-22 11:30:48 link

you gonna help him go to the bathroom too?

Posted by member 260794 on 2005-08-22 15:35:48 link

I changed 12 to 24 from label.txt but nothing happens.

Posted by member 1316 on 2005-08-22 18:11:58 link

you changed 12 to 24...so (I'm hoping) you mean you changed it from:
DateTimeLabelText "[date('h')]:[date('nn')] [date('am/pm')]\n[date('ddd')] [date('mmm')] [date('d')]"

to
DateTimeLabelText "[date('i')]:[date('nn')] [date('am/pm')]\n[date('ddd')] [date('mmm')] [date('d')]"

or to
DateTimeLabelText "[date('ii')]:[date('nn')] [date('am/pm')]\n[date('ddd')] [date('mmm')] [date('d')]"

please tell me I'm right?

Posted by member 212670 on 2005-08-22 23:43:11 link

Haha@DeViLbOi

Btw, why is it using only [date]? I guess that would work and all, since it's giving the "time" syntax definitions, but you'd think it should simply be "[time('ii:nn am/pm')]\n[date('ddd mmm d')]"

Posted by member 248213 on 2005-08-23 00:56:30 link

I think the old label used just date...

Posted by member 212670 on 2005-08-23 03:31:56 link

Not according to the snippet above. ^^^^

Posted by member 248213 on 2005-08-23 21:54:14 link

:P