Time

Can the Arduino keep track of time? I would like to have a relay switch on and off at a specific time of day, while the Arduino is disconnected from the computer.