renaming function parameter from date to time.