Add R and python implementations of datetime