def PrintSeconds(seconds):
  """Return a string representing the given time in seconds."""
  orig = seconds
  minutes = seconds // 60
  seconds %= 60
  hours = minutes // 60
  minutes %= 60
  days = hours // 24
  hours %= 24

  s = ""
  if days > 0:
    s += "%dd " % days
  if hours > 0:
    s += "%02dh " % hours
  if minutes > 0:
    s += "%02dm " % minutes
  s += "%02ds" % seconds
  s += " (%ds)" % orig
  return s