Controlling and dimming outlets for aquarium lights

Search for DS1307 on EBay. $24 seems about $18 dollars too much.

Still too much. They are 2 dollars or 1.50 euros (total actual costs).

Those leds are a problem. Bare leds need a constant current. And lights with a rectifier and capacitor or other circuit inside cannot be dimmed with PWM.