it's a simple question, but I'm nervous about how complicated the answer might be.
I want to know in my application, how many hours have passed since the epoch. More specifically, I want to know "how many times since the epoch has a GMT clock ended in :00"
Normally I would just do:
number_of_seconds_since_epoch / 3600
but I'm not really sure if an hour is exactly 3600 seconds. I keep hearing about how the earth keeps slowing down and speeding up, and how leapyears do weird things, etc.
Can anyone show me the correct way to do this, in any language? Thanks!