feature(user) Add legacy user scripts
[BK-2020-03.git] / user / bkdate
... / ...
CommitLineData
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
7DATE="$(date --iso-8601=seconds)"
8
9if [[ $DATE =~ "+00:00"$ ]]; then
10 DATE2=${DATE::-6}"Z"
11 echo $DATE2
12 exit 0
13else
14 echo $DATE
15 exit 0
16fi