feat(user/bkdatev):Substitute UNIX epoch for UTC locale time
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Fri, 11 Nov 2022 22:16:16 +0000 (22:16 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Fri, 11 Nov 2022 22:16:16 +0000 (22:16 +0000)
user/bkdatev

index b888d578ad690e8ce2e391083d57d5f32e8c20b4..0429acfb51e63534810b9ce1abb4f3f87cafedb3 100755 (executable)
@@ -2,7 +2,7 @@
 # Desc: Baltakatei's verbose date command
 # Usage: bkdatev [args]
 # Example: bkdatev --date="2001-09-11T09:02:59-04"
 # Desc: Baltakatei's verbose date command
 # Usage: bkdatev [args]
 # Example: bkdatev --date="2001-09-11T09:02:59-04"
-# Version: 0.0.1
+# Version: 0.1.0
 # Ref/Attrib: [1] "ISO 8601". Wikipedia. https://en.wikipedia.org/wiki/ISO_8601
 #             [2] "Changing the Locale in Wine" https://stackoverflow.com/a/16428951
 #             [3] "Shanghai vs Beijing" https://bugs.launchpad.net/ubuntu/+source/libgweather/+bug/228554
 # Ref/Attrib: [1] "ISO 8601". Wikipedia. https://en.wikipedia.org/wiki/ISO_8601
 #             [2] "Changing the Locale in Wine" https://stackoverflow.com/a/16428951
 #             [3] "Shanghai vs Beijing" https://bugs.launchpad.net/ubuntu/+source/libgweather/+bug/228554
@@ -10,6 +10,7 @@
 #         * Check `cat /usr/share/i18n/SUPPORTED` for supported locales.
 #         * For list of valid locales, see: https://manpages.ubuntu.com/manpages/bionic/man3/DateTime::Locale::Catalog.3pm.html
 #         * Locations chosen for population, personal signifiance, and spatial coverage.
 #         * Check `cat /usr/share/i18n/SUPPORTED` for supported locales.
 #         * For list of valid locales, see: https://manpages.ubuntu.com/manpages/bionic/man3/DateTime::Locale::Catalog.3pm.html
 #         * Locations chosen for population, personal signifiance, and spatial coverage.
+#         # For International Atomic Time (TAI), use offsets from UTC provided in `/usr/share/zoneinfo/leap-seconds.list`.
 
 line_sep() {
     # Input: var: n_ln
 
 line_sep() {
     # Input: var: n_ln
@@ -58,6 +59,7 @@ main() {
     (
         export TZ=UTC;
         id="UTC";
     (
         export TZ=UTC;
         id="UTC";
+        fs_3="+%s seconds since 1970-01-01T00:00+00";
         print_dateline "$@";
     ); line_sep;
 
         print_dateline "$@";
     ); line_sep;