How do I change the time plugin to 12hr format? #264
-
How do I change the time plugin to 12hr? Thank you!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The time is provided by the command man date What you will find is that date '+%I:%M %p' Replace the command invoked for the clock label with this one and you are good to go. |
Beta Was this translation helpful? Give feedback.
-
this is the most baffling project/discussion to me, what the hell is even the name of the property to set |
Beta Was this translation helpful? Give feedback.
The time is provided by the command
date
. What you want is to find the argument which gives you 12 hour time format. To do this you use:What you will find is that
%H
is the hour in 24h format and%I
the hour using 12h format. Additionally you will find that%p
givesAM
orPM
depending on the current time. The command you are looking for is thus:date '+%I:%M %p'
Replace the command invoked for the clock label with this one and you are good to go.