#!/usr/bin/python

import time
import os
import subprocess

# Number of seconds we want in between the different timezones
cycle_interval = 10
date_format = "%l:%M %p"

timezones_with_flag = [
	("🇺🇸 SEA", "US/Pacific"),
	("🇮🇪 DUB", "Europe/Dublin"),
	("🇸🇬 SG", "Asia/Hong_Kong"),
]

timezones = [
	("SEA", "US/Pacific"),
	("DUB", "Europe/Dublin"),
	("SG", "Asia/Hong_Kong"),
]

index = 0
while True:
	cur=time.time()
	original_tz = os.environ.get("TZ", "")

	tz = timezones[index % len(timezones)]
	os.environ["TZ"] = tz[1]
	time.tzset()
	tz_time = time.strftime("%l:%M %p", time.localtime(cur))

	os.environ["TZ"] = original_tz

	index += 1
	#result = subprocess.run(["TZ=':US/Pacific'", "date", "+'%l:%M %p'"], stdout=subprocess.PIPE)
	print(f"{tz[0]} {tz_time}")
	time.sleep(cycle_interval)

3bd231c2d9edfc2a84e4aab7d8682d83a8e5a586
<mask token>

<mask token>
while True:
    cur = time.time()
    original_tz = os.environ.get('TZ', '')
    tz = timezones[index % len(timezones)]
    os.environ['TZ'] = tz[1]
    time.tzset()
    tz_time = time.strftime('%l:%M %p', time.localtime(cur))
    os.environ['TZ'] = original_tz
    index += 1
    print(f'{tz[0]} {tz_time}')
    time.sleep(cycle_interval)

<mask token>
cycle_interval = 10
date_format = '%l:%M %p'
timezones_with_flag = [('🇺🇸 SEA', 'US/Pacific'), ('🇮🇪 DUB', 'Europe/Dublin'
    ), ('🇸🇬 SG', 'Asia/Hong_Kong')]
timezones = [('SEA', 'US/Pacific'), ('DUB', 'Europe/Dublin'), ('SG',
    'Asia/Hong_Kong')]
index = 0
while True:
    cur = time.time()
    original_tz = os.environ.get('TZ', '')
    tz = timezones[index % len(timezones)]
    os.environ['TZ'] = tz[1]
    time.tzset()
    tz_time = time.strftime('%l:%M %p', time.localtime(cur))
    os.environ['TZ'] = original_tz
    index += 1
    print(f'{tz[0]} {tz_time}')
    time.sleep(cycle_interval)

import time
import os
import subprocess
cycle_interval = 10
date_format = '%l:%M %p'
timezones_with_flag = [('🇺🇸 SEA', 'US/Pacific'), ('🇮🇪 DUB', 'Europe/Dublin'
    ), ('🇸🇬 SG', 'Asia/Hong_Kong')]
timezones = [('SEA', 'US/Pacific'), ('DUB', 'Europe/Dublin'), ('SG',
    'Asia/Hong_Kong')]
index = 0
while True:
    cur = time.time()
    original_tz = os.environ.get('TZ', '')
    tz = timezones[index % len(timezones)]
    os.environ['TZ'] = tz[1]
    time.tzset()
    tz_time = time.strftime('%l:%M %p', time.localtime(cur))
    os.environ['TZ'] = original_tz
    index += 1
    print(f'{tz[0]} {tz_time}')
    time.sleep(cycle_interval)

#!/usr/bin/python

import time
import os
import subprocess

# Number of seconds we want in between the different timezones
cycle_interval = 10
date_format = "%l:%M %p"

timezones_with_flag = [
	("🇺🇸 SEA", "US/Pacific"),
	("🇮🇪 DUB", "Europe/Dublin"),
	("🇸🇬 SG", "Asia/Hong_Kong"),
]

timezones = [
	("SEA", "US/Pacific"),
	("DUB", "Europe/Dublin"),
	("SG", "Asia/Hong_Kong"),
]

index = 0
while True:
	cur=time.time()
	original_tz = os.environ.get("TZ", "")

	tz = timezones[index % len(timezones)]
	os.environ["TZ"] = tz[1]
	time.tzset()
	tz_time = time.strftime("%l:%M %p", time.localtime(cur))

	os.environ["TZ"] = original_tz

	index += 1
	#result = subprocess.run(["TZ=':US/Pacific'", "date", "+'%l:%M %p'"], stdout=subprocess.PIPE)
	print(f"{tz[0]} {tz_time}")
	time.sleep(cycle_interval)
