Hi amazon430,
Thank you for using the Apple Support Communities. I saw your post about missing photos, and I'm glad to see how I can help.
There are a number of possibilities in a case like this. You mentioned both iCloud and Time Machine. Are you syncing photos between devices using iCloud Photos? If so, do you have more than one Apple ID?
Do the photos appear on any of your devices that use iCloud Photos?
If you've used more than one Apple ID, a good place to start is to Use iCloud.com from a web browser on a computer. You can sign in there using each Apple ID, and then click Photos to see which content has been synced to iCloud from the Apple ID.
This resource has a few other suggestions that may be helpful: Get help with missing photos
Regarding Time Machine, this link will show you how to Restore a library from Time Machine in Photos on Mac, but I recommend double-checking the above first to rule out possible iCloud/Apple ID factors.
I hope this helps get you started.
Cheers.