Author: gnichols
Date: 2010-06-15 17:30:40 +0000 (Tue, 15 Jun 2010)
New Revision: 553
Modified:
trunk/v7/documentbase.py
Log:
FEAT: add a reboot test
Modified: trunk/v7/documentbase.py
===================================================================
--- trunk/v7/documentbase.py 2010-06-15 17:28:47 UTC (rev 552)
+++ trunk/v7/documentbase.py 2010-06-15 17:30:40 UTC (rev 553)
@@ -93,8 +93,10 @@
return time.strftime(Constants.DATETIMEFORMAT, theTime)
def durationData(self, startTime, stopTime):
- start = datetime.datetime.strptime(startTime, Constants.DATETIMEFORMAT)
- stop = datetime.datetime.strptime(stopTime, Constants.DATETIMEFORMAT)
+ # start = datetime.datetime.strptime(startTime, Constants.DATETIMEFORMAT)
+ start = datetime.datetime(*(time.strptime(startTime,
Constants.DATETIMEFORMAT)[0:5]))
+ # stop = datetime.datetime.strptime(stopTime, Constants.DATETIMEFORMAT)
+ stop = datetime.datetime(*(time.strptime(stopTime,
Constants.DATETIMEFORMAT)[0:5]))
return stop - start
def duration(self, startTime, stopTime):
Show replies by date