! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
New label format requested
Status:
RESOLVED: INVALID
Product:
Xfce4-panel

Comments

Description Urides 2014-02-19 11:49:56 CET
Currently, the clock component of the panel provides for the hours

%H
    hour (00..23)

and a padded version

%k
    hour ( 0..23)

which doesn't display none useful zeros. But for the minutes, it only provides 

%M
    minute (00..59)


My request would be to also have a padded version of the minutes (1..59) not displaying none useful zeros.

Examples :

0 h
3 h
3 h 1
5 h 9
14 h 10
23 h 43

Thank you.

Available label format at :
http://docs.xfce.org/xfce/xfce4-panel/clock
Comment 1 Andre Miranda editbugs 2015-03-10 05:27:29 CET
If you look more closely to the page you linked, where is says "By default, numeric fields are padded with zeroes.", you'll discover that %k == %-H, so to accomplish what you need you should use %-M.

Bug #10699

Reported by:
Urides
Reported on: 2014-02-19
Last modified on: 2015-03-10

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information