diff options
author | Jefferson Julio <[email protected]> | 2022-05-15 22:07:59 -0300 |
---|---|---|
committer | Jefferson Julio <[email protected]> | 2022-05-15 22:07:59 -0300 |
commit | 1c9ba130efdb94de69c9ac50926f64a0b9984fb6 (patch) | |
tree | d3905e79448e09a6882cf9c7c5e3533ba3787551 /utils/rr-to-json-date | |
parent | b38b775980d117ada07dc9f8e23c228bc23bcbdd (diff) | |
download | rest-run-1c9ba130efdb94de69c9ac50926f64a0b9984fb6.tar.bz2 rest-run-1c9ba130efdb94de69c9ac50926f64a0b9984fb6.zip |
Creation of convenience scripts on utils/ directory for use on rest-run request data creation.
Diffstat (limited to 'utils/rr-to-json-date')
-rwxr-xr-x | utils/rr-to-json-date | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/rr-to-json-date b/utils/rr-to-json-date new file mode 100755 index 0000000..ffbfabe --- /dev/null +++ b/utils/rr-to-json-date @@ -0,0 +1,12 @@ +#!/bin/bash + +DATE_ARG="$@" + +if [ -z "$DATE_ARG" ]; then + while read inpt; do + DATE_ARG="$inpt" + break + done +fi + +eval -- date -d \"$DATE_ARG\" +\"%FT%T.000Z\" |