Difference between batch processing and time sharing?

In batch processing the tasks are performed in batches. In time sharing, the operating system shares the time between each task.