Skip to content

Instantly share code, notes, and snippets.

@tlehman
Created September 22, 2017 21:34
Show Gist options
  • Select an option

  • Save tlehman/b3ae61cb5db53dddaf6a331ab836f2bc to your computer and use it in GitHub Desktop.

Select an option

Save tlehman/b3ae61cb5db53dddaf6a331ab836f2bc to your computer and use it in GitHub Desktop.
times script
#!/bin/sh
# This is used in bitbar to display the time in the two main timezones I work in:
TZ=America/Los_Angeles date +"%Y-%h-%d %r (%Z)" | sed 's/:[0-9][0-9] / /g'
TZ=UTC date +"%Y-%h-%d %r (%Z)" | sed 's/:[0-9][0-9] / /g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment