[PATCH 1/4] jscript: Added implementation of Date constructor with more then one argument

Alexandre Julliard julliard at winehq.org
Mon Jun 22 06:44:05 CDT 2009


Piotr Caban <piotr.caban at gmail.com> writes:

> Alexandre Julliard wrote:
>> You should use SystemTimeToFileTime or some similar function, no need to
>> reinvent the wheel.
>> 
>
> In this case SYSTEMTIME keeps information returned by
> GetTimeZoneInformation. It's used to store informations about
> daylight/standard time adjustment. Because there's no ordinary date
> SystemTimeToFileTime can't be used.

I see, that makes sense. You do need to check that the year is 0 though,
because otherwise it's still a normal date format.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list