Skip to content

Add 12-hour time format support#51

Open
zinefer wants to merge 2 commits into
daniel3303:mainfrom
zinefer:zinefer/12h-time
Open

Add 12-hour time format support#51
zinefer wants to merge 2 commits into
daniel3303:mainfrom
zinefer:zinefer/12h-time

Conversation

@zinefer

@zinefer zinefer commented Jul 10, 2026

Copy link
Copy Markdown

Adds 12-hour time formatting support via STATUSLINE_TIME_FORMAT=12h, rendering reset times as e.g. 3:50am and Tue Jul 14, 12:00am instead of the default 24-hour 15:50 / Tue Jul 14, 00:00.

I tested this with both GNU date (linux) and BSD date (macOS)

Note: This only applies to statusline.sh (macOS/Linux). statusline.ps1 (Windows) already always renders 12-hour time and has no STATUSLINE_TIME_FORMAT/24h option. I didn't touch that as I don't have a good way to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant