in reply to stat() and time-zone-offsets?

What you get from stat is epoch GMT already, so to get GMT you don't need to do anything.

If you want to get the epoc in your local timezone you need to do a trick to get the difference from GMT to your timezone as described in Re: Re: How to get TZ difference? and then apply that difference to the value you get from stat()