def ReadableTime(self, seconds):
    if seconds < 60:
      if int(seconds) == 1:
        elapsed = '%d second ago' %(seconds)
      else:
        elapsed = '%d seconds ago' %(seconds)
    elif seconds < 3600:
      minutes = seconds/60
      if int(minutes) == 1:
        elapsed = '%d minute ago' %(minutes)
      else:
        elapsed = '%d minutes ago' %(minutes)
    elif seconds < 86400:
      hours = seconds/3600
      if int(hours) == 1:
        elapsed = '%d hour ago' %(hours)
      else:
        elapsed = '%d hours ago' %(hours)
    else:
      days = seconds/86400
      if int(days) == 1:
        elapsed = '%d day ago' %(days)
      else:
        elapsed = '%d days ago' %(days)
    return elapsed
Test to unpair bluetooth adaptor with a device
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/main.py/StatsPage.ReadableTime--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/bluez_test.py/BluezTestCase.test_unpair