BC Time

This script gets the local time in British Columbia so I can check quickly before I go to call people and stuff. I would just use GMT offsets, except North America uses daylight savings time, and rather than put the logic in my code I opted out for an internet solution… Plus it lets me show off the command line utility sed…to adapt this to another time zone change the city the url looks up by going to timeanddate.com/worldclock and find the city number for the city you want to look up.

OS version: OS X

do shell script "curl http://www.timeanddate.com/worldclock/city.html?n=256 |  sed -n 's/.*td><b>\\(.*\\) <a.*/\\1/p' "
display dialog "B.C. Time: " & result