def vals_to_dt(vals, fmt): res = [] for val in vals: try: dt = timeval_to_datetime(val,fmt) res.append(dt) #info("{} converted to {}".format(val, dt)) except Exception,e: warn("Unparseable value {} in layer {} ignored. Cause {}".format(val, self.layer.name(),e)) pass
def vals_to_dt(vals, fmt): res = [] for val in vals: try: dt = time_util.timeval_to_datetime(val, fmt) res.append(dt) # info("{} converted to {}".format(val, dt)) except Exception, e: warn( "Unparseable value {} in layer {} ignored. Cause {}" .format(val, self.layer.name(), e)) pass