def GenericListFields(resource, fields, separator, header, cl=None):
  if cl is None:
    cl = GetClient()

  if not fields:
    fields = None

  response = cl.QueryFields(resource, fields)

  found_unknown = _WarnUnknownFields(response.fields)

  columns = [
    TableColumn("Name", str, False),
    TableColumn("Type", str, False),
    TableColumn("Title", str, False),
    TableColumn("Description", str, False),
    ]

  rows = map(_FieldDescValues, response.fields)

  for line in FormatTable(rows, columns, header, separator):
    ToStdout(line)

  if found_unknown:
    return constants.EXIT_UNKNOWN_FIELD

  return constants.EXIT_SUCCESS
Input: NSDate object
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/GenericListFields--crossover with--dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/addTimeZoneOffsetToDate