Add a function which returns the time given a record ID. Signed-off-by: Simon Glass <sjg@chromium.org>