add function to print out date and time