def FormatTimestamp(ts):
  if not isinstance(ts, (tuple, list)) or len(ts) != 2:
    return "?"

  (sec, usecs) = ts
  return utils.FormatTime(sec, usecs=usecs)
Formats a given timestamp.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/FormatTimestamp