Appendix B. WPS Tags
139
B.16 Time and Date
Tag
Description
%cd
Day of month
%ce
Zero padded day of month
%cH
Zero padded hour from 00 to 23 (24 hour format)
%ck
Hour from 0 to 23 (24 hour format)
%cI
Zero padded hour from 12 to 12 (am/pm format)
%cl
Hour from 12 to 12 (am/pm format)
%cm
Month
%cM
Minutes
%cS
Seconds
%cy
2-digit year
%cY
4-digit year
%cP
Capital AM/PM
%cp
Lowercase am/pm
%ca
Weekday name
%cb
Month name
%cu
Day of week from 1 to 7, 1 is Monday
%cw
Day of week from 0 to 6, 0 is Sunday
%cc
Check for presence of the clock hardware
The %cc tag returns “c” if the necessary hardware is present and can also be used as a
conditional. This can be very useful for designing a WPS that works on multiple targets,
some with and some without a clock. By using this tag as a conditional it is possible to
display current date and time on those targets that support this (like the Recorder), or
alternate information on those that do not .
Example:
%?cc
<
%cH:%cM
|
No clock detected
>
The Rockbox manual
Archos Recorder