function prettifyTime$1 ({ log, timestampKey = TIMESTAMP_KEY$1, translateFormat = undefined }) {
  let time = null;

  if (timestampKey in log) {
    time = log[timestampKey];
  } else if ('timestamp' in log) {
    time = log.timestamp;
  }

  if (time === null) return undefined
  if (translateFormat) {
    return '[' + formatTime(time, translateFormat) + ']'
  }

  return `[${time}]`
}
Prettifies a timestamp if the given `log` has either `time`, `timestamp` or custom specified timestamp
property.

@param {object} input
@param {object} input.log The log object with the timestamp to be prettified.
@param {string} [input.timestampKey='time'] The log property that should be used to resolve timestamp value
@param {boolean|string} [input.translateFormat=undefined] When `true` the
timestamp will be prettified into a string at UTC using the default
`DATE_FORMAT`. If a string, then `translateFormat` will be used as the format
string to determine the output; see the `formatTime` function for details.

@returns {undefined|string} If a timestamp property cannot be found then
`undefined` is returned. Otherwise, the prettified time is returned as a
string.