Commit 93e5e8c4 authored by ericw's avatar ericw
Browse files

Add time zones

parent 54e291de
......@@ -10,7 +10,7 @@ Tests the local FroNtier squid
# 3) file $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml
# contains the location of the local FroNtier squid server
#
__revision__ = "$Id: test_squid.py,v 1.3 2007/02/14 21:40:22 ericw Exp $"
__revision__ = "$Id: test_squid.py,v 1.4 2007/02/16 17:03:44 ericw Exp $"
import os
import sys
import urllib2
......@@ -134,7 +134,7 @@ queryStart = time.localtime()
if statsFlag:
pass
else:
print "\nQuery started: ", time.strftime("%m/%d/%y %H:%M:%S", queryStart)
print "\nQuery started: ", time.strftime("%m/%d/%y %H:%M:%S %Z", queryStart)
t1 = time.time()
#
try:
......@@ -159,7 +159,7 @@ if statsFlag:
size = len(result)
print duration, size, size/duration
else:
print "Query ended: ", time.strftime("%m/%d/%y %H:%M:%S", queryEnd)
print "Query ended: ", time.strftime("%m/%d/%y %H:%M:%S %Z", queryEnd)
print "Query time: %s [seconds]\n" % (t2-t1)
#
# Print out result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment