calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

[FEATURE REQUEST] Support for 12 Hour Time

Open rajansaini691 opened this issue 6 years ago • 3 comments

Using version 4.5.1-8-g74f4-dirty. I am trying to change calcurse to use the 12 hour clock instead of the 24 hour clock. Is this feature supported? Thanks!

rajansaini691 avatar Jan 07 '20 23:01 rajansaini691

When run interactively calcurse uses the hour (time of day) in three places, two for output, one for input.

In the notify bar at the bottom of the screen, the calcurse clock outputs the time (and date). The format can be configured in 'strftime()' fashion to your hearts content. Use the 'n Notify' submenu of the 'C Config' menu.

In the appointments panel, calcurse outputs the time for each appointment. The format is hardcoded as a 24-hour clock (hh:mm). It would not be too difficult to make it configurable.

In several situations calcurse asks for time-of-day input (e.g. when a new appointment is entered). Only a 24-hour format is accepted (hh:mm or hhmm).

lhca avatar Jan 11 '20 08:01 lhca

How about adding a outputime format option to the general section? It could then be used in both interative and non-interactive mode (and can be overwritten in non-interactive mode by using extended format specifiers).

lfos avatar Jan 13 '20 16:01 lfos

Yeah, I think adding a setting to make it 12 hour time would be very helpful

JakeRoggenbuck avatar Sep 26 '20 18:09 JakeRoggenbuck