aboutsummaryrefslogtreecommitdiff
path: root/man/man1/sec.1df
blob: 589b6a7465cf8adeaf696fef53ed54dc96ff945c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.TH SEC 1df "December 2016" "Manual page for sec"
.SH NAME
.B sec
\- convert colon-delimited durations to seconds
.SH USAGE
.B sec
FILE1 [FILE2 ...]
.br
.B sec
< FILE
.br
printf '1:02:54\\n' |
.br
sec=$(printf '%s\n' "$timestamp" | sec)
.B sec
.SH DESCRIPTION
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 AUTHOR
Tom Ryder <tom@sanctum.geek.nz>