aboutsummaryrefslogtreecommitdiff
path: root/utils/rr-to-json-date
blob: ffbfabeda637e2af6e4d4448df667fd1ac5b72d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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\"