Yes, seconds are related to the Earth rotating around the sun. Simplifying slightly, the normal definition of a day relates to how long for Earth to rotate on its axis until the same spot on the Earth points at the sun again.

Compare Mean solar day vs Stellar day vs Sideral day - the difference is less than 5 minutes or so.

Thanks, I see now from:

https://en.wikipedia.org/wiki/Solar_time

I was thinking along the lines of the ancient Sumerians arbitrarily deciding to divide 1 day into 24 hours, and 24 hours into 60 minutes, and 60 minutes into 60 seconds, and how that doesn't have anything to do with how humans came up with the concept of 1 year (the Earth rotating around the sun).

[deleted]