datefmt

format unix timestamps over stdin
git clone git://jb55.com/datefmt
Log | Files | Refs | README | LICENSE

commit dbea1f165de78af9ba5ed640944e06bce4bbc832
parent aa3b7728ea1efa4effe3878ef1b8e88f51190875
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 17 Nov 2022 09:46:09 -0800

Release v0.2.2

Diffstat:
MMakefile | 2+-
Mdist/SHA256SUMS.txt | 1+
Mdist/SHA256SUMS.txt.asc | 8++++----
Mdoc/datefmt.1 | 9+++++++--
Mdoc/datefmt.scd | 3+++
5 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,7 +15,7 @@ dist: @ls -dt dist/* | head -n1 | xargs echo "tgz " cd dist;\ sha256sum *.tar.gz > SHA256SUMS.txt;\ - gpg -u 0xC5D732336E9DC2C7F9D9D91CAC3CB14001216D67 --sign --armor --detach-sig --output SHA256SUMS.txt.asc SHA256SUMS.txt + gpg -u 0x8A478B64FFE30F1095A8736BF5F27EFD1B38DABB --sign --armor --detach-sig --output SHA256SUMS.txt.asc SHA256SUMS.txt datefmt: datefmt.c $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) diff --git a/dist/SHA256SUMS.txt b/dist/SHA256SUMS.txt @@ -1,2 +1,3 @@ 5d5e765380afe39eb39d48f752aed748b57dfd843a4947b2a6d18ab9b5e68092 datefmt-0.2.1.tar.gz +b32cb5f2513dc05972083f9b67391375e5d8db94c0a982bbe307bb8a7698bd75 datefmt-0.2.2.tar.gz 3dab9cf8e58915d0880cb9f69856be041941f21009d0572644064b200606d65f datefmt-0.2.tar.gz diff --git a/dist/SHA256SUMS.txt.asc b/dist/SHA256SUMS.txt.asc @@ -1,7 +1,7 @@ -----BEGIN PGP SIGNATURE----- -iHUEABYIAB0WIQSl3viLGIy6gtsnTaFldvToCW2jHAUCYa28mgAKCRBldvToCW2j -HI8+AQD9hVbm9u2NyOVm9N+Ha5mcX3mj0508TB+m2RVar+QEZQEAh4rJAuvjas43 -XNH6/ceWok2XJdhMO7ug5y7AS9cT9gw= -=NICq +iHUEABYKAB0WIQSKR4tk/+MPEJWoc2v18n79GzjauwUCY3Z0TgAKCRD18n79Gzja +u4Z3AQDg8nro3jBhwCksU7OuniYKSl40gVOiLQl3CUVITxtU2QD+K4Ml0pgH5p1M +244Ck20dCh5QPEWZi7/hUM2RQfoA8AU= +=A55f -----END PGP SIGNATURE----- diff --git a/doc/datefmt.1 b/doc/datefmt.1 @@ -1,4 +1,4 @@ -.\" Generated by scdoc 1.11.1 +.\" Generated by scdoc 1.11.2 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' @@ -48,6 +48,11 @@ only format timestamps in the future interpret timestamps as milliseconds instead of seconds .P .RE +\fB-r, --relative\fR +.RS 4 +relative timestmap formatting +.P +.RE \fB--version\fR .RS 4 display version and exit @@ -55,7 +60,7 @@ display version and exit .RE .SH FORMAT .P -a strftime(3) format string.\& defaults to '%F %R'.\& The default can be changed +a strftime(3) format string.\& defaults to '\&%F %R'\&.\& The default can be changed with the \fBDEFAULT_DATEFMT\fR environment variable.\& .P .SH EXAMPLE diff --git a/doc/datefmt.scd b/doc/datefmt.scd @@ -31,6 +31,9 @@ to convert these timestamps into formatted dates. *-m, --ms* interpret timestamps as milliseconds instead of seconds +*-r, --relative* + relative timestmap formatting + *--version* display version and exit