parameters: (value)
return_statement: return value
docstring: Given a VALUE, deserialize it to a datetime
docstring_summary: Given a VALUE, deserialize it to a datetime
docstring_tokens: Given a VALUE deserialize it to a datetime
function: def deserialize_datetime(value):
      """
      Given a VALUE, deserialize it to a datetime
      """
      if isinstance(value, datetime.datetime):
          return value
  
      input_format = settings.DATETIME_INPUT_FORMATS[0]
      value = timezone.make_aware(datetime.datetime.strptime(
          value, input_format
      ), timezone.get_current_timezone())
  
      return value
function_tokens: def deserialize_datetime ( value ) : if isinstance ( value , datetime . datetime ) : return value input_format = settings . DATETIME_INPUT_FORMATS [ 0 ] value = timezone . make_aware ( datetime . datetime . strptime ( value , input_format ) , timezone . get_current_timezone ( ) ) return value