Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1590

Help: Rainmeter Skins • Re: Time Zone Abbreviation

$
0
0
As far as I can tell, the Time measure format codes include, for time zone, only the full name (eg. "Eastern Standard Time"). Is there any way to get the time zone name abbreviation, eg. "EST", "PDT", etc.?

Unrelated question: is there any way to get the am/pm indicator in lower case, rather than upper case?
I don't know of a way, other than some brute force Substitute approach, to change all "Eastern Standard Time" to "EST" and so forth. I expect there is a site somewhere that has all the names in both long and short versions, then you just build a presumably giant Substitute to change them.

Edit: Here is the best site: https://www.timeanddate.com/time/zones/

Note: If I was actually going to do this, I would likely do a simple lookup table in Lua to accomplish this. Not rocket science to do, just a fair amount of drudge work to create the table from the source data.

As far as the AM / PM indicator...

Code:

[Measure12HrTime]Measure=TimeFormat=%#I:%M %p[Meter12HrTime]Meter=StringMeasureName=Measure12HrTimeFontSize=15FontColor=255,255,255,255InlineSetting=Case | LowerInlinePattern=AM|PM
https://docs.rainmeter.net/manual/meters/string/inline/#InlineCase

Note: In this case the InlinePattern isn't strictly required, as the AM/PM text is the only string text in the meter, but I included it for completeness.

Statistics: Posted by jsmorley — Yesterday, 11:13 pm



Viewing all articles
Browse latest Browse all 1590

Trending Articles