"""Formatters for datetimes.""" def format_datetime(dt): """Format a datetime.""" return dt.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z'