From: Steven Baltakatei Sandoval Date: Tue, 7 Jul 2020 02:34:11 +0000 (+0000) Subject: test(unitproc):dateTimeShort:Add sample test of nanoseconds X-Git-Tag: 0.3.0~51 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/e9332c6447b2b6cd413e1d66d281786810e988f3?hp=-c test(unitproc):dateTimeShort:Add sample test of nanoseconds --- e9332c6447b2b6cd413e1d66d281786810e988f3 diff --git a/unitproc/bktemp-dateTimeShort b/unitproc/bktemp-dateTimeShort index 6606d77..cabb4ba 100644 --- a/unitproc/bktemp-dateTimeShort +++ b/unitproc/bktemp-dateTimeShort @@ -41,7 +41,9 @@ dateTimeShort(){ echo "The current day and time is :$(dateTimeShort)"; echo "Contact lost with STS-107 on:$(dateTimeShort "2003-02-01T08:59:15-05:00")"; echo "Bitcoin started on :$(dateTimeShort "@1231006505")"; - +testDate="2020-07-07T02:30:11,690097074+00:00"; +echo "This string was generated using 'date --iso-8601=ns':$testDate"; +echo "Using dateTimeShort, it appears as:$(dateTimeShort "$testDate")"; #==END sample code== # Author: Steven Baltakatei Sandoval