Published: 01 Mar 2018 › Updated: 01 Mar 2018

Linux - Execute Your Program in a Different Timezone
It is sometimes handy to temporarily change the timezone in order to test something or run a program under a certain condition. You can do this by setting the environment variable TZ to your preferred timezone.
Example: TZ=Asia/Tokyo ./my_program
I tested this only on Ubuntu.
Leave Linux - Execute Your Program in a Different Timezone to:
Read more #linux posts
Best Posts From tokosh
We have not curated any of tokosh's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.