feature(unitproc) Add legacy unit process scripts
[BK-2020-03.git] / user / bkdate
1 #!/bin/bash
2
3 # Date: 2020-02-06T22:51Z
4
5 # Description: A simple command line tool to dispay the date in ISO-8601 format.
6
7 DATE="$(date --iso-8601=seconds)"
8
9 if [[ $DATE =~ "+00:00"$ ]]; then
10 DATE2=${DATE::-6}"Z"
11 echo $DATE2
12 exit 0
13 else
14 echo $DATE
15 exit 0
16 fi