It is currently March 28th, 2024, 11:36 pm

Changing 24hr clock to 12hr clock

Get help with creating, editing & fixing problems with skins
97Radical
Posts: 2
Joined: June 19th, 2017, 10:39 pm

Changing 24hr clock to 12hr clock

Post by 97Radical »

Can anyone help me change this skin http://shivershark.deviantart.com/art/Linux-Bar-1-0-652954440?ga_submit_new=10%253A1482535004 from its 24hr time, to a 12hr format? Please and Thank you!

Here is the skin:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Metadata]
Name=Linux Bar
Author=Shiverheart
Information=Provides information and access options.
License=
Version=1.0

@Include=#@#Variables.inc

;MEASURES

[audio1_measure]
Measure=Plugin
Parameter=sndvol.exe -f
Plugin=RunCommand
State=Hide

[audio2_measure]
Measure=Plugin
Plugin=Win7AudioPlugin

[bin_measure]
Measure=Plugin
Plugin=RecycleManager
UpdateDivider=5

[power1_measure]
Measure=Plugin
Parameter=shutdown /p /d p:0:0
Plugin=RunCommand
State=Hide

[power2_measure]
Measure=Plugin
Parameter=shutdown /r /d p:0:0
Plugin=RunCommand
State=Hide

[time_measure]
Measure=Time
Format=%a %e %b %R

;STYLES

[text_bar]
AntiAlias=1
FontColor=#color_font1#
FontFace=#font_face#
FontSize=#font_size#
MeasureName=#CURRENTSECTION#_measure
SolidColor=0,0,0,1
Y=12

[button]
AntiAlias=1
H=22
ImageName=#@#Images\#CURRENTSECTION#.png
ImageTint=#color_button1#
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageTint #color_button1#][!Update]
MouseOverAction=[!SetOption #CURRENTSECTION# ImageTint #color_button2#][!Update]
PreserveAspectRatio=1
SolidColor=0,0,0,1
W=22
X=20R
Y=1

;METERS

[bar]
Meter=Image
H=24
SolidColor=#color_bar#
W=#SCREENAREAWIDTH#
Y=0

[applications]
Meter=String
LeftMouseDownAction=[!ToggleConfig "Linux Bar\Launcher" "Launcher.ini"]
MeterStyle=text_bar
StringAlign=LeftCenter
Text=$carecrow
X=20

[time]
Meter=String
MeterStyle=text_bar
StringAlign=CenterCenter
X=(#SCREENAREAWIDTH# / 2)

[audio]
Meter=Image
LeftMouseDownAction=[!CommandMeasure audio1_measure "Run"]
MeterStyle=button
MouseScrollDownAction=[!CommandMeasure "audio2_measure" "ChangeVolume -10"]
MouseScrollUpAction=[!CommandMeasure "audio2_measure" "ChangeVolume 10"]
RightMouseDownAction=[!CommandMeasure "audio2_measure" "ToggleMute"]
X=(#SCREENAREAWIDTH# - 242)

[music]
Meter=Image
LeftMouseDownAction=["C:\Program Files\iTunes\iTunes.exe"]
MeterStyle=button

[documents]
Meter=Image
LeftMouseDownAction=["C:\Users\L\Documents"]
MeterStyle=button

[pictures]
Meter=Image
LeftMouseDownAction=["C:\Users\L\Pictures"]
MeterStyle=button

[bin]
Meter=Image
LeftMouseDownAction=[!CommandMeasure bin_measure OpenBin]
MeterStyle=button
RightMouseDownAction=[!CommandMeasure bin_measure EmptyBinSilent]

[power]
Meter=Image
LeftMouseDownAction=[!CommandMeasure power1_measure "Run"]
MeterStyle=button
RightMouseDownAction=[!CommandMeasure power2_measure "Run"]
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Changing 24hr clock to 12hr clock

Post by mak_kawa »

Maybe...replace Format=%a %e %b %R in [time_measure] with Format=%a %e %b %I:%M %p or Format=%a %e %b %r.
97Radical
Posts: 2
Joined: June 19th, 2017, 10:39 pm

Re: Changing 24hr clock to 12hr clock

Post by 97Radical »

:D Thanks so much man! They both work, the only difference is the second one shows the seconds. :D Thank you!