MacOSX Bash / Shell Snippet: Convert time between timezones

11 Flares Twitter 0 Facebook 0 Google+ 1 Reddit 0 LinkedIn 0 StumbleUpon 10 Filament.io 11 Flares ×

Today I made a few API calls to debug something and took a look at the timestamps the objects were created at. The time was saved in ISO-8601 UTC but I needed it in my own timezone so I wrote a little shell one-liner.

I however noticed that most articles online describe how it’s done for GNU date, but my Mac OSX had BSD date installed. Here is how you solve it on Macs:

Hope this was useful to you. If so, tweet about it, maybe some of your followers might find it useful as well.

11 Flares Twitter 0 Facebook 0 Google+ 1 Reddit 0 LinkedIn 0 StumbleUpon 10 Filament.io 11 Flares ×

Leave a Reply