Last active
August 29, 2015 14:08
-
-
Save ivoarch/94df51024ecb9f036e3d to your computer and use it in GitHub Desktop.
Световното време от терминала.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# само за bash | |
shopt -s expand_aliases | |
clear; | |
alias datetime="date +'%a-%d-%b,%H:%M'" | |
echo -e 'Колко е часът във Европа?' | |
echo -e '===========================' | |
echo -e 'Amsterdam:\t\t' "$(TZ="Europe/Amsterdam" datetime)" | |
echo -e 'Madrid: \t\t' "$(TZ="Europe/Madrid" datetime)" | |
echo -e 'Berlin: \t\t' "$(TZ="Europe/Berlin" datetime)" | |
echo -e 'Sofia: \t\t' "$(TZ="Europe/Sofia" datetime)" | |
echo -e 'Moscow: \t\t' "$(TZ="Europe/Moscow" datetime)" | |
echo -e 'Istanbul: \t\t' "$(TZ="Europe/Istanbul" datetime)" | |
echo -e 'London: \t\t' "$(TZ="Europe/London" datetime)" | |
echo -e '' | |
echo -e 'Колко е часът във Америка?' | |
echo -e '===========================' | |
echo -e 'NYC: \t\t' "$(TZ="America/New_York" datetime)" | |
echo -e 'Bogota: \t\t' "$(TZ="America/Bogota" datetime)" | |
echo -e 'Mexico City:\t\t' "$(TZ="America/Mexico_City" datetime)" | |
echo -e '' | |
echo -e 'Колко е часът във Азия?' | |
echo -e '===========================' | |
echo -e 'Tokyo: \t\t' "$(TZ="Asia/Tokyo" datetime)" | |
echo -e 'Bangkok: \t\t' "$(TZ="Asia/Bangkok" datetime)" | |
echo -e 'HongKong: \t\t' "$(TZ="Asia/Shanghai" datetime)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment