How to create script for organizing images to folders, based on timespan between images?

Hello! May be some smart folks there can help me to organize images to folders, using creation time span?
Ill try to explain. Every day I shot images, but it is a separate events (from zero, to 3-4 events per day). When you shoot one event, between images creation time usually not more than 15 minutes, may be 20, but often less. So, It will be great to sort images to 1 folder per event. I have Hazel app, but without scripting, I think, it will not be possible.