Add functions which convert timestamps to <--> from datetimes