List Info

Thread: Re: BR 774131: date and time macros




Re: BR 774131: date and time macros
user name
2008-02-16 17:36:49
> >> If the underlying platform doesn't provide UTC
time, these macros are undefined.
> >
> > On a platform that doesn't support anything but
local time,
> > the CRT might report the same time for localtime()
as well
> > as gmtime(), in which case the UTC macros will
exist, and
> > (most likely) not present UTC, no?
>
> That's correct.  That's a platform issue, not really
any different than
> the fact that the clock can be set incorrectly by the
platform.

You probably want to fix the manual then, because it
currently
says that the macros will be undefined.

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nasm-devel mailing list
Nasm-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-devel

Re: BR 774131: date and time macros
user name
2008-02-16 17:51:05
anonymous coward wrote:
>>>> If the underlying platform doesn't provide
UTC time, these macros are undefined.
>>> On a platform that doesn't support anything but
local time,
>>> the CRT might report the same time for
localtime() as well
>>> as gmtime(), in which case the UTC macros will
exist, and
>>> (most likely) not present UTC, no?
>> That's correct.  That's a platform issue, not
really any different than
>> the fact that the clock can be set incorrectly by
the platform.
> 
> You probably want to fix the manual then, because it
currently
> says that the macros will be undefined.

No, it says that they will be undefined if the host platform
doesn't 
provide them.  It doesn't say that they will be undefined if
the host 
platform has the clock wrong, timezone misconfigured or
provides 
nonsense any other way.

	-hpa

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nasm-devel mailing list
Nasm-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )