Adds $date and $time function.