def _GetItemTimestamp(getter):
  def fn(_, item):
    """Returns a timestamp of item.

    """
    timestamp = getter(item)
    if timestamp is None:
      # Old configs might not have all timestamps
      return _FS_UNAVAIL
    else:
      return timestamp

  return fn
Returns function for getting timestamp of item.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetItemTimestamp