code: def str(self,local=False,ifempty=None):
          
          ts = self.get(local)
          if not ts: return ifempty
          return ts.strftime('%Y-%m-%d %H:%M:%S')
docs: Returns the string representation of the datetime