Created
January 4, 2023 21:40
-
-
Save tunnckoCore/a61e730e0cbff42604b16f7955a5b1c3 to your computer and use it in GitHub Desktop.
datetime across timezones
This file contains 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 | |
date "+%B %e, %A" | |
SOFIA=`TZ=Europe/Sofia date "+%T"` | |
NEW_YORK=`TZ=America/New_York date "+%T"` | |
LOS_ANGELES=`TZ=America/Los_Angeles date "+%T"` | |
TOKYO=`TZ=Asia/Tokyo date "+%T"` | |
LONDON=`TZ=Europe/London date "+%T"` | |
echo "" | |
echo "Los Angeles: $LOS_ANGELES" | |
echo "New York: $NEW_YORK" | |
echo "London: $LONDON" | |
echo "Sofia: $SOFIA" | |
echo "Tokyo: $TOKYO" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment