Set the start and end dates and times for a posted event for insertion into the database.
Validates all date and times given to it.
Makes sure events do not exceed the maximum allowed duration (if any).
If passed an array that defines any time or date parameters, they will be used. Otherwise, gets the values from $_POST.