Skip to content

Instantly share code, notes, and snippets.

@tunnckoCore
Created January 4, 2023 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tunnckoCore/a61e730e0cbff42604b16f7955a5b1c3 to your computer and use it in GitHub Desktop.
Save tunnckoCore/a61e730e0cbff42604b16f7955a5b1c3 to your computer and use it in GitHub Desktop.
datetime across timezones
#!/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