clock doesn't keep time on my subaru legacy B4, what's the problem? on 2003 Subaru Legacy

Does this has anything to do with the battery?

Asked by for the 2003 Subaru Legacy
2 answers
poss internal in radio,not the battery
Is it set to the same defalt time every time it acts up? Is this each time car is started?