projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style(unitproc):timeEpochNS:Bump ver for last style commit
[BK-2020-03.git]
/
unitproc
/
bktemp-timeEpochNS
diff --git
a/unitproc/bktemp-timeEpochNS
b/unitproc/bktemp-timeEpochNS
index 33006e5e0be4302ab6d0763542c88175b7be6b3b..b0e9a1506e41532d1a54cf135ebdd35d776abc75 100644
(file)
--- a/
unitproc/bktemp-timeEpochNS
+++ b/
unitproc/bktemp-timeEpochNS
@@
-7,7
+7,7
@@
try() { "$@" || die "cannot $*"; } #o
timeEpochNS() {
# Desc: Get epoch nanoseconds
# Usage: timeEpochNS
timeEpochNS() {
# Desc: Get epoch nanoseconds
# Usage: timeEpochNS
- # Version 0.2.
0
+ # Version 0.2.
1
# Input: arg1: 'date'-parsable timestamp string (optional)
# Output: Nanoseconds since 1970-01-01
# Depends: date 8, yell()
# Input: arg1: 'date'-parsable timestamp string (optional)
# Output: Nanoseconds since 1970-01-01
# Depends: date 8, yell()
@@
-33,8
+33,8
@@
timeEpochNS() {
else
### F: Time argument not valid; exit
yell "ERROR:Invalid time argument supplied. Exiting."; exit 1;
else
### F: Time argument not valid; exit
yell "ERROR:Invalid time argument supplied. Exiting."; exit 1;
- fi
- fi
+ fi
;
+ fi
;
# Construct and deliver nanoseconds since 1970-01-01
TIME_EPOCH_FLOAT="$(date --date="$TIME_INPUT" +%s.%N)"; # Save ssss.NNNNNNNNN
TIME_EPOCH_INT="$(echo "$TIME_EPOCH_FLOAT" | cut -d. -f1)"; # Get ssss
# Construct and deliver nanoseconds since 1970-01-01
TIME_EPOCH_FLOAT="$(date --date="$TIME_INPUT" +%s.%N)"; # Save ssss.NNNNNNNNN
TIME_EPOCH_INT="$(echo "$TIME_EPOCH_FLOAT" | cut -d. -f1)"; # Get ssss