def humanDatetime(value, strip_microsecond=True):
 text = unicode(value.isoformat())
 text = text.replace('T', ' ')
 if (strip_microsecond and ('.' in text)):
  text = text.split('.')[0]
 return text

def humanDatetime ( value , strip_microsecond = True ) : text = unicode ( value . isoformat ( ) ) text = text . replace ( 'T' , ' ' ) if ( strip_microsecond and ( '.' in text ) ) : text = text . split ( '.' ) [ 0 ] return text
convert a timestamp to unicode string: use iso format with space separator .