Add a relative time option for time formatting, GitHub issue 5009.

This commit is contained in:
nicm
2026-06-08 21:19:52 +00:00
parent a0f4038df2
commit bf2e078ecf
2 changed files with 58 additions and 3 deletions

10
tmux.1
View File

@@ -6323,9 +6323,15 @@ gives
gives
.Ql Sun Oct 25 09:25:02 2015 .
Adding
.Ql p (
.Ql `t/p` )
.Ql p
.Pq Ql t/p
will use shorter but less accurate time format for times in the past.
.Ql r
.Pq Ql t/r
will show the time relative to the current time, for example
.Ql \-1m
or
.Ql +2m23s .
A custom format may be given using an
.Ql f
suffix (note that