It is currently April 20th, 2024, 1:59 am

24 hour format

Get help with creating, editing & fixing problems with skins
DannyBiker
Posts: 7
Joined: January 19th, 2010, 5:53 pm

24 hour format

Post by DannyBiker »

Hello,

Sorry if this as been asked before but try searching the words "24 hour format" with the search engine and you'll understanding why I'm posting this... :-)

I'd like to know if it is possible to change the skin's hour format from 12 to 24h. I'm using Dark Rainmeter TimeDate.ini for the moment but a global solution would be great.

Thank you! :D
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: 24 hour format

Post by Chewtoy »

Sure. Look at the time measure. Change %I to %H.
http://msdn.microsoft.com/en-us/library/fe06s4ak%28vs.71%29.aspx <-- Time stuff.
I don't think, therefore I'm not.
DannyBiker
Posts: 7
Joined: January 19th, 2010, 5:53 pm

Re: 24 hour format

Post by DannyBiker »

That was quick ! Worked like a charm. :)
Is there a way to remove the "am/pm" information that became useless ?
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: 24 hour format

Post by Chewtoy »

If you look at that link, you'll see what's causing the am/pm. Just remove it from the code.
Also, be sure to read the Manual and Rainmeter101.
I don't think, therefore I'm not.
DannyBiker
Posts: 7
Joined: January 19th, 2010, 5:53 pm

Re: 24 hour format

Post by DannyBiker »

Okay, the "%p" code ! Thanks for the help. ;)

I also would like to give credits to all the good people behind Rainmeter for improving its accessibility, especially recently. Keep up the good work ! :thumbsu: