예제 #1
0
 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
예제 #2
0
 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