Now with the Timelapser app your iPhone will easily record time lapse movies. The only problem might be keeping the iPhone still from frame to frame.
The app is on sale at half price for a limited time so it's currently selling for 99 cents. Firmware 3.1 is required, however the app will work on any generation iPhone. Frames can be captured more frequently on the iPhone 3GS.