How much time until an unused hard drive loses its data?

Loading...
Do you guys know how much time needs to pass until the data stored on a hard drive starts to degrade? To keep the data intact for long periods of time, I heard you need to periodically rewrite it on the hard drive, like every 5 years or so. Is it true?