It is currently September 29th, 2024, 7:25 am

Need Help with Full Year Display

General topics related to Rainmeter.
User avatar
MourningStar
Posts: 300
Joined: June 12th, 2016, 2:40 am

Need Help with Full Year Display

Post by MourningStar »

I have a clock with the following line :

Format=%A - %B %#d %#y - %#H:%M:%S


and it displays thus :

TUESDAY - JUNE 21 16 - 8:08:08 (this also gives me 24-hour display as I desire)

1. What must I do to have the year display as 2016?

2. If possible, what must I do to display single digit hour with a leading zero?

3. If possible, what must I do to display day and month with upper case first letter and lower-case remaining thus:

Tuesday - June

I modified the default ilustro\Clock that comes with rainmeter.

- thank you
Last edited by MourningStar on June 21st, 2016, 4:14 pm, edited 2 times in total.
User avatar
jsmorley
Developer
Posts: 22783
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need Help with Full Year Display

Post by jsmorley »

[MeasureTime]
Measure=Time
Format=%A - %B %d %Y - %H:%M:%S

[MeterTime]
Meter=String
MeasureName=MeasureTime
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1

https://docs.rainmeter.net/manual/measures/time/#FormatCodes

"Y" is the 4-digit version, "y" is the 2-digit version.

Remove the "#" chars from the format to display the leading zeros.

The text is already "proper case" in the Time measure, just be sure there isn't a StringCase=Upper or some such on the meters you are displaying it in.
1.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
MourningStar
Posts: 300
Joined: June 12th, 2016, 2:40 am

Re: Need Help with Full Year Display

Post by MourningStar »

:bow: Thank You! :bow:
User avatar
jsmorley
Developer
Posts: 22783
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need Help with Full Year Display

Post by jsmorley »

You are welcome.