how do ipods, laptops, game consoles remember the date?

how do those things /\ remember the date even if they are unplugged and or out of charge?
example : you unplugged a ps3 3 days ago and you plugged it in today and it knows its today ? how?
 
Top