def add_epochtime(self): """ add epoch time to the event object """ self.etime = converttime.datetime2epoch(self.time)
def add_epochtime(self): """ add epoch time to the event object """ import converttime #for i in range(len(self.evid)): # etime[i] = converttime.datetime2epoch(self.time[i]) self.etime = converttime.datetime2epoch(self.time)