# Desc: Baltakatei's verbose date command
# Usage: bkdatev [args]
# Example: bkdatev --date="2001-09-11T09:02:59-04"
-# Version: 0.0.1
+# Version: 0.2.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
# * 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
(
export TZ=UTC;
id="UTC";
+ fs_3="+%s seconds since 1970-01-01T00:00+00";
print_dateline "$@";
); line_sep;
print_dateline "$@";
); line_sep;
+ # Taipei, Taiwan (pop (2019): 7,034,084)
+ (
+ export TZ=Asia/Taipei; # [3]
+ export LANG="zh_TW.UTF-8";
+ id="TAIPEI";
+ print_dateline "$@";
+ ); line_sep;
+
# Tokyo, Japan (pop. (2018): 37,274,000)
(
export TZ=Asia/Tokyo;
print_dateline "$@";
); line_sep;
+ # Pyongyang, North Korea
+ (
+ export TZ=Asia/Pyongyang;
+ export LANG="ko_KP.UTF8";
+ id="PYONGYANG";
+ print_dateline "$@";
+ ); line_sep;
+
# Sydney, Australia
(
export TZ=Australia/Sydney;