git: grdc(6): Add '-t' option to show time in 12-hour format

Aaron LI aly at crater.dragonflybsd.org
Sun Feb 21 00:18:31 PST 2021


commit ffe1d30b7611d4b27d06edc40cc191b74be21252
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Feb 21 16:12:49 2021 +0800

    grdc(6): Add '-t' option to show time in 12-hour format
    
    Partially based on FreeBSD's implementation (revision 112749).  But I
    moved the AM/PM mark to the upper-left corner instead of the
    bottom-right corner as in FreeBSD, because the mark in the bottom-right
    corner would be flushed by scrolling.
    
    In addition, improve the determination of AM/PM mark, including:
    00:mm -> 12:mm AM
    12:mm -> 12:mm PM

Summary of changes:
 games/grdc/grdc.6 |  6 +++++-
 games/grdc/grdc.c | 26 ++++++++++++++++++++++----
 2 files changed, 27 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ffe1d30b7611d4b27d06edc40cc191b74be21252


-- 
DragonFly BSD source repository



More information about the Commits mailing list