To update the time display in real time, you can use the setInterval() method to call a function that updates the time display every second. This function should create a new Date object and then extract the hours, minutes, and seconds from it using the getHours(), getMinutes(), and getSeconds() methods.