My phone has a time-lapse setting. You have to use a tripod, otherwise the image will be jumpy. Here is about 5 minutes of today’s sunset, compressed into 14 seconds.
This was just an experiment. Now that I know how it works, I will do longer recordings next time.