[uae] Re: Clock fixes

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Fri, 30 Jul 2004 14:26:40 -0500

Hi Axel

On Thursday 29 July 2004 12:02 pm, Axel Dörfler wrote:
> Is that so? I would think that it would return the time in the native
> time format, which can be either UTC or your local time. But I am not
> really sure about it, either; that's something that has always confused
> me (because it's handled differently across the different OSes).

Yes. It's probably system dependent and something not actually defined by the 
POSIX standard. For multi-user systems, it would make sense for time-stamps 
to be in UTC, whereas, for single-user systems (e.g. AmigaOS, BeOS, 
Windows?), time-stamps in the local timezone would be more appropriate.

> Right, but although BeOS has it, I am unsure about AmigaOS and Windows
> (and would think presumably not).

I'll have to check on BeOS. If stat() returns local time-stamps, then the 
conversion won't be necessary there. It's certainly not necessary for 
AmigaOS, and I guess probably not Windows (since nobody has attempted to fix 
this problem in WinUAE, I guess it doesn't occur there).

Cheers,
Rich

Other related posts: