From b9b5a431422c4213fe555e284fcfaa96cd692267 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Feb 2017 02:17:12 +1300 Subject: Add hms(1df) --- man/man1/hms.1df | 23 +++++++++++++++++++++++ man/man1/sec.1df | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 man/man1/hms.1df (limited to 'man') diff --git a/man/man1/hms.1df b/man/man1/hms.1df new file mode 100644 index 00000000..5c1a287c --- /dev/null +++ b/man/man1/hms.1df @@ -0,0 +1,23 @@ +.TH HMS 1df "February 2017" "Manual page for hms" +.SH NAME +.B hms +\- convert seconds to colon-delimited durations +.SH USAGE +.B hms +FILE1 [FILE2 ...] +.br +.B hms +< FILE +.br +printf '1:02:54\\n' | +.B hms +.br +hms=$(printf '%s\\n' "$seconds" | hms) +.SH DESCRIPTION +Applies awk(1) to convert counts of seconds into hh:mm:ss or mm:ss timestamps. +Exits zero if all lines were successfully recognised and converted, non-zero +otherwise. +.SH SEE ALSO +sec(1df) +.SH AUTHOR +Tom Ryder diff --git a/man/man1/sec.1df b/man/man1/sec.1df index aad09ddd..d0011b38 100644 --- a/man/man1/sec.1df +++ b/man/man1/sec.1df @@ -17,5 +17,7 @@ sec=$(printf '%s\\n' "$timestamp" | sec) Applies awk(1) to convert hh:mm:ss or mm:ss timestamps into a count of seconds. Exits zero if all lines were successfully recognised and converted, non-zero otherwise. +.SH SEE ALSO +hms(1df) .SH AUTHOR Tom Ryder -- cgit v1.2.3