Add function for generating a DateTime from a time record index.

This is the first function developed using Test Driven Development philosophies.

Signed-off-by: Max Fierke <max@maxfierke.com>