from datetime import datetime


def get_wait(x):
  """Get time difference between timestamp and now

  Paramaters
  ----------
  str
      Timestamp with the format of Slurm

  Returns
  -------
  deltatime
     difference time
  """
  
  return datetime.now() - datetime.fromtimestamp(x)