def _ListJobTimestamp(name, ts, container, prior_ts=None):
  """ Adds the job timestamp to the given container.

  @param prior_ts: The timestamp used to calculate the amount of time that
                   passed since the given timestamp.

  """
  if ts is not None:
    delta = ""
    if prior_ts is not None:
      delta = " (delta %.6fs)" % _CalcDelta(prior_ts, ts)
    output = "%s%s" % (FormatTimestamp(ts), delta)
    container.append((name, output, "job_timestamp"))
  else:
    container.append((name, "unknown (%s)" % str(ts), "job_timestamp"))
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/_ListJobTimestamp/original