16x2, 20x2, 20x4: New Format Date/Time Screens

jc634

Administrator
New Time/Date Screen Set

With the latest release CrystalControl2, a new "timedate" plugin has been added. Programming screens for this plugin uses the format noted below:

%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 as decimal number (01 – 31)

%H
Hour in 24-hour format (00 – 23)

%I
Hour in 12-hour format (01 – 12)

%j
Day of year as decimal number (001 – 366)

%m
Month as decimal number (01 – 12)

%M
Minute as decimal number (00 – 59)

%p
Current locale's A.M./P.M. indicator for 12-hour clock

%S
Second as decimal number (00 – 59)

%U
Week of year as decimal number, with Sunday as first day of week (00 – 53)

%w
Weekday as decimal number (0 – 6; Sunday is 0)

%W
Week of year as decimal number, 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, as decimal number (00 – 99)

%Y
Year with century, as decimal number

%z, %Z
Either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown

id#=2974886458
Returns the current date, as decimal number (00 – 366)

%%
Percent sign


An example of the "cc2_timedate.ini" file would be:


[time00]
id=1271088632
format="%a %d %b %Y"

[time01]
id=3124516610
format="%I:%M:%S %p"


The current date, as a decimal number, is now included in the latest release of CC2. CC2 now has a countdown function. Nice!

Time/Date Screen 1:


Time/Date Screen 2:


Time/Date Screen 3:


Time/Date Screen 4:


Time/Date Screen 5:


Time/Date Screen 6, European format:


Time/Date Screen 7:


Time/Date Screen 8:


Time/Date Screen 9:


Time/Date Screen 10:


Time/Date Screen 11:


Time/Date Screen 12, European format:


Time/Date Screen 13:


Time/Date Screen 14:


Time/Date Screen 15:


Time/Date Screen 16:


Time/Date Screen 17:


Time/Date Screen 18, European format:


Time/Date Screen 19:


Time/Date Screen 20:


Time/Date Screen 21:


Time/Date Screen 22:


Time/Date Screen 23, European format:


Time/Date Screen 24:


Time/Date Screen 25:


Time/Date Screen 26:


Time/Date Screen 27:


Time/Date Screen 28:


Time/Date Screen 29:


Time/Date Screen 30, European format:


Time/Date Screen 31:


Time/Date Screen 32:


Time/Date Screen 33:


Time/Date Screen 34, European format:


Time/Date Screen 35:


Author: JC634

Screen zip file: date-time.zip

Install Instructions:

Copy the clock gif file out of the zip to C:\gifs.

Copy the screens out of the zip into the: C:\Program Files\CrystalControl2\screens directory, add them to your module.

Included are 16x2, 20x2 and 20x4 screen files.

Development thread: N/A
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 
Top