The Nikon D300 comes with a built-in intervalometer for taking images at regular intervals according to you predefined exposure and interval settings.
I’ve been playing around with this and finally got a pretty cool (yet not perfect) time lapse photo of the full moon and Mars? as they arc accross the night sky. I did add bit of “music” just for fun! (The Aliens enjoy it.)