Defines a time interval for a Gantt item.
Call this function to set the start and end time of a task at once.