def format_records( records ):
  """
    Format a list of records into text.
  """
  text = [ ]
  for ( date, value ) in records:
    text.append( '\t'.join( [ date.isoformat( ), str( value ) ] ) )
  return '\n'.join( text )