pymongo_formatter/formatter.py
def date_map(doc, datemap_list, time_format=None):
        '''
        For all the datetime fields in "datemap" find that key in doc and map the datetime object to
        a strftime string. This pprint and others will print out readable datetimes.
        '''
        if datemap_list:
            for i in datemap_list:
                if isinstance(i, datetime):
                    doc=CursorFormatter.date_map_field(doc, i, time_format=time_format)
        return doc
def date_map(doc, datemap_list, time_format=None):
        '''
        For all the datetime fields in "datemap" find that key in doc and map the datetime object to
        a strftime string. This pprint and others will print out readable datetimes.
        '''
        if datemap_list:
            for i in datemap_list:
                if isinstance(i, datetime):
                    doc=CursorFormatter.date_map_field(doc, i, time_format=time_format)
        return doc
def date_map ( doc , datemap_list , time_format = None ) : if datemap_list : for i in datemap_list : if isinstance ( i , datetime ) : doc = CursorFormatter . date_map_field ( doc , i , time_format = time_format ) return doc
For all the datetime fields in "datemap" find that key in doc and map the datetime object to
        a strftime string. This pprint and others will print out readable datetimes.
For all the datetime fields in datemap find that key in doc and map the datetime object to a strftime string . This pprint and others will print out readable datetimes .