A task calendar is a project calendar that you create and apply to a task that has special scheduling needs. For example, a task that represents an automated process that occurs every Friday evening typically would not be scheduled using the standard project calendar.
A task calendar can override the project calendar and override any resource calendars that any assigned resources might have applied to them.
In this demo, I create a calendar and apply it to a task.