Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

World clock shell script (See related posts)

#!/bin/sh
TZ=US/Pacific date +"Jason/Nate: %I:%M %p %a %D"
TZ=US/Central date +"Ryan: %I:%M %p %a %D"
TZ=US/Eastern date +"Jan/Daniel: %I:%M %p %a %D"
TZ=US/Eastern date +"Terrel/Christopher: %I:%M %p %a %D"
TZ=UTC date +"UTC/GMT: %I:%M %p %a %D"
TZ=Europe/Amsterdam date +"Filip/Marten: %I:%M %p %a %D"
TZ=Europe/Amsterdam date +"Florian/Johan: %I:%M %p %a %D"
TZ=Europe/Paris date +"Dean/Damelon: %I:%M %p %a %D"
TZ=Australia/Melbourne date +"Justin: %I:%M %p %a %D"
TZ=NZ date +"Koz: %I:%M %p %a %D"

Comments on this post

johan posts on Jul 08, 2005 at 08:51
And here it is in military time, which (like the metric system) as we all know is far superior ;)

#!/bin/sh
TZ=US/Pacific date +"Jason/Nate: %H:%M %a %D"
TZ=US/Central date +"Ryan: %H:%M %a %D"
TZ=US/Eastern date +"Jan/Daniel: %H:%M %a %D"
TZ=US/Eastern date +"Terrel/Christopher: %H:%M %a %D"
TZ=UTC date +"-- UTC/GMT: %H:%M %a %D --"
TZ=Europe/Amsterdam date +"Filip/Marten: %H:%M %a %D"
TZ=Europe/Amsterdam date +"Florian/Johan: %H:%M  %a %D *"
TZ=Europe/Paris date +"Dean/Damelon: %H:%M %a %D"
TZ=Australia/Melbourne date +"Justin: %H:%M %a %D"
TZ=NZ date +"Koz: %H:%M %a %D"

You need to create an account or log in to post comments to this site.


Related Posts