#!/bin/bash
# Display UTC in the menubar, and one or more additional zones in the drop down.
# The current format (HH:MM:SS) works best with a one second refresh, or alter
# the format and refresh rate to taste.
#
# World Clock
# v1.1
# Adam Snodgrass
# asnodgrass
# Display current UTC time in the menu bar, with various timezones in the drop-down menu
# https://cloud.githubusercontent.com/assets/6187908/12207887/464ff8b2-b617-11e5-9d61-787eed228552.png
# string(VAR_ZONES="Australia/Sydney Europe/Amsterdam America/New_York America/Los_Angeles"): Space delimited set of timezones
ZONES=${VAR_ZONES}
date -u +'%H:%M:%S UTC | font=Monaco'
echo '---'
for zone in $ZONES; do
echo "$(TZ=$zone date +'%H:%M:%S %z') $zone | font=Monaco"
done