title: DynamoDB find nearest integer key
body: <p>I have a dynamodb table with hash as unix time, and primarykey as name</p>
  
  <p>Is there a way to get the closest unix time, if it cannot find the exact one?</p>
  
  <p>So if I am searching for (123343445, john), it will either return (123343445, john) or the next closest which may be (123343446, john)</p>
  
  <p>I would ideally not want to check for an item then iterate up or down until I find a matching time because I do not know what the time interval is and in most cases it will not be equal.</p>