Exemplo n.º 1
0
 def _get_map_date(self):
     """Private method to obtain the Vector map date"""
     date_str = utils.decode(libvect.Vect_get_map_date(self.c_mapinfo))
     try:
         return datetime.datetime.strptime(date_str, self.date_fmt)
     except ValueError:
         return date_str
Exemplo n.º 2
0
 def _get_map_date(self):
     """Private method to obtain the Vector map date"""
     date_str = libvect.Vect_get_map_date(self.c_mapinfo)
     try:
         return datetime.datetime.strptime(date_str, self.date_fmt)
     except:
         return date_str
Exemplo n.º 3
0
 def _get_map_date(self):
     date_str = libvect.Vect_get_map_date(self.c_mapinfo)
     return datetime.datetime.strptime(date_str, self.date_fmt)