Updated plugins/time.py

This commit is contained in:
neersighted 2012-03-11 11:45:49 -08:00
parent 6749bf8340
commit 54c8e37cce

View file

@ -1,9 +1,12 @@
# Plugin by Lukeroge with some code from Phenny # Plugin by Lukeroge with some code from Phenny
# <lukeroge@gmail.com> <http://www.dempltr.com/> # <lukeroge@gmail.com> <http://www.dempltr.com/>
import re, time, locale, datetime from util import hook
from util import http
from util import hook, http import re
import time
import locale
import datetime
from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulSoup
TimeZones = {'KST': 9, 'CADT': 10.5, 'EETDST': 3, 'MESZ': 2, 'WADT': 9, TimeZones = {'KST': 9, 'CADT': 10.5, 'EETDST': 3, 'MESZ': 2, 'WADT': 9,
@ -238,9 +241,7 @@ def timecommand(inp, say=None):
return output return output
else: else:
try: try:
return get_time(inp) output = get_time(inp)
return output
except ValueError: except ValueError:
return "Could not get the time for " + inp + "!" return "Could not get the time for " + inp + "!"