scripts/worldtime: Init

master
Pierre Neidhardt 2017-05-31 22:03:09 +01:00
parent 9877eb74f2
commit de4a7199b2
1 changed files with 16 additions and 0 deletions

16
.scripts/worldtime Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
set -- \
UTC '' \
Europe/Paris "France Germany Sweden" \
Asia/Calcutta India \
Indian/Mauritius Mauritius \
Africa/Tunis Tunisia \
Asia/Ho_Chi_Minh Vietnam \
Australia/Melbourne Melbourne \
Africa/Nairobi Uganda \
while [ $# -gt 0 ]; do
TZ="$1" date "+%a %b %e %H:%M:%S %Z %Y%t$2"
shift 2
done