Which component of the PC maintains the date and time?
In a computer, the CMOS chip maintains the date and time. The CMOS draws its power from the socket when computer is plugged in. On the other hand it draws its power from the back-up-battery when the computer is unplugged from socket.
It's called the T.O.Y. Time of year chip.