]> zdv2.bktei.com Git - BK-2020-03.git/blobdiff - unitproc/bkt-timeDuration
fix(user/bkdatev):Fix --date='' functionality for right/UTC
[BK-2020-03.git] / unitproc / bkt-timeDuration
index 1db408b8c101a203a026a03ab16486b2544a23f8..7786723446f6fe66c84e20c895d636bbe78e93a9 100644 (file)
@@ -2,9 +2,9 @@
 
 # Desc: Template to indicate time duration in ISO-8601 format
 
 
 # Desc: Template to indicate time duration in ISO-8601 format
 
-yell() { echo "$0: $*" >&2; } # Yell, Die, Try Three-Fingered Claw technique; # Ref/Attrib: https://stackoverflow.com/a/25515370
-die() { yell "$*"; exit 111; }
-try() { "$@" || die "cannot $*"; }
+yell() { echo "$0: $*" >&2; } # print script path and all args to stderr
+die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status
+must() { "$@" || die "cannot $*"; } # runs args as command, reports args if command fails
 timeDuration(){
     # Desc: Given seconds, output ISO-8601 duration string
     # Ref/Attrib: ISO-8601:2004(E), §4.4.4.2 Representations of time intervals by duration and context information
 timeDuration(){
     # Desc: Given seconds, output ISO-8601 duration string
     # Ref/Attrib: ISO-8601:2004(E), §4.4.4.2 Representations of time intervals by duration and context information