TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: drumbo on December 01, 2003, 10:47:03 AM

Title: 24 Hour Clock
Post by: drumbo on December 01, 2003, 10:47:03 AM
Can someone let me know how to put the digital clock in slider.txt into 24hour format?
The following works
   image,14,11,analogclock.png,t
   analogclock,29,27,hourhand.png,minutehand.png,tr
   text,29,0,LOCAL,c
   time,29,42,-1,5,c,ddd, HH:mm tt
but this doesn't
   image,59,11,analogclock.png,t
   time,74,27,4,analog,hourhand.png,minutehand.png
   text,74,0,[name],c
   time,74,42,4,2,c,ddd,HH:mm tt
nor does
   image,59,11,analogclock.png,t
   time,74,27,4,analog,hourhand.png,minutehand.png
   text,74,0,[name],c
   time,74,42,4,2,c,,HH:mm tt
Title: 24 Hour Clock
Post by: Alf on December 01, 2003, 11:39:23 AM
time Command

Displays the time as text using the specified format.  Used in conjunction with the configuration file time command.

Syntax

time,<x>,<y>,<id>,<format>,<justification>

Parameters
<x> Left position of time display in pixels.

<y> Top position of time display in pixels.

<id> ID of a of time entry specified in the configuration file.  Set to –1 to display current local time.

<format>  Can be one of the following:
1 -> 12 hr format, with date
2 -> 12 hr format, no date
3 -> 24 hr format, with date
4 -> 24 hr format, no date


<justification> Alignment of time display which can be one of the following:
c -> Center
l -> Left
r -> Right

Adding an s character at the end of this command will add a shadow to the text, whose color is defined by the skin file color-shadow command.

Example
time,74,42,4,4,c

Hope that helps !  :)