@@ -118,11 +118,13 class Figure(Operation): | |||||
118 | xmin = (thisdatetime - thisdate).seconds/(60*60.) |
|
118 | xmin = (thisdatetime - thisdate).seconds/(60*60.) | |
119 | xmax = xmin + timerange/(60*60.) |
|
119 | xmax = xmin + timerange/(60*60.) | |
120 |
|
120 | |||
121 | mindt = thisdate + datetime.timedelta(hours=xmin) - datetime.timedelta(seconds=time.timezone) |
|
121 | d1970 = datetime.datetime(1970,1,1) | |
122 | xmin_sec = time.mktime(mindt.timetuple()) |
|
|||
123 |
|
122 | |||
124 |
m |
|
123 | mindt = thisdate + datetime.timedelta(hours=xmin) #- datetime.timedelta(seconds=time.timezone) | |
125 |
xm |
|
124 | xmin_sec = (mindt - d1970).total_seconds() #time.mktime(mindt.timetuple()) - time.timezone | |
|
125 | ||||
|
126 | maxdt = thisdate + datetime.timedelta(hours=xmax) #- datetime.timedelta(seconds=time.timezone) | |||
|
127 | xmax_sec = (maxdt - d1970).total_seconds() #time.mktime(maxdt.timetuple()) - time.timezone | |||
126 |
|
128 | |||
127 | return xmin_sec, xmax_sec |
|
129 | return xmin_sec, xmax_sec | |
128 |
|
130 |
General Comments 0
You need to be logged in to leave comments.
Login now