[ros-dev] Re : Year 2038 problem
Timo Kreuzer
timo.kreuzer at web.de
Sun Apr 12 19:23:23 CEST 2009
Well, Windows and ReactOS ARE using unix time. Not in the kernel, but in
the crt.
And actually this IS an issue on reactos at this time.
Windows has solved the issue, by adding 64 bit time_t support, which is
used by default and can only be overridden with defining
USE_32BIT_TIME_T when compiling your software.
Our crt headers currently still contain a hack that defines this by
default, because we don't have any 64bit time_t support in out crt, at
least not in trunk.
I recently added a new time implementation to the amd64 branch that
supports 64 bit time_t. It should work, but it's not fully tested.
Regards,
Timo
Javier Agustěn Fernŕndez Arroyo schrieb:
> lol
> far enough to forget about it :-P
> thanks for the replies anyway :)
>
> On Sun, Apr 12, 2009 at 7:12 AM, Alex Ionescu <ionucu at videotron.ca> wrote:
>
>
>> Just to make the point clear: It will overflow on January 1st, 584942.
>>
>> Best regards,
>> Alex Ionescu
>>
>>
>>
>> On Sat, Apr 11, 2009 at 10:08 PM, Alex Ionescu <ionucu at videotron.ca>
>> wrote:
>>
>>> Windows NT time is specified as the number of 100 nanosecond intervals
>>> since January 1, 1601
>>>
>>> Best regards,
>>> Alex Ionescu
>>>
>>>
>>>
>>> On Sat, Apr 11, 2009 at 8:13 PM, King InuYasha <ngompa13 at gmail.com>
>>>
>> wrote:
>>
>>>> Then what DOES NT use to calculate time?
>>>> On Sat, Apr 11, 2009 at 9:34 PM, Alex Ionescu <ionucu at videotron.ca>
>>>>
>> wrote:
>>
>>>>> Again, since Ged wasn't clear: This is NT. NT does not use Unix time.
>>>>>
>>>>> Best regards,
>>>>> Alex Ionescu
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Apr 11, 2009 at 6:52 PM, Sylvain Petreolle <
>>>>>
>> spetreolle at yahoo.fr>
>>
>>>>> wrote:
>>>>>
>>>>>> I also noticed a funny thing browsing the year 2038 website :
>>>>>> http://www.2038bug.com/demo.html shows the first negative date given
>>>>>>
>> by
>>
>>>>>> a
>>>>>> negative int32 number.
>>>>>>
>>>>>> -2147483648, Fri Dec 13 20:45:52 1901
>>>>>>
>>>>>> Kind regards,
>>>>>> Sylvain Petreolle
>>>>>>
>>>>>> ________________________________
>>>>>> De : Ged <gedmurphy at gmail.com>
>>>>>> Ŕ : ReactOS Development List <ros-dev at reactos.org>
>>>>>> Envoyé le : Dimanche, 12 Avril 2009, 1h19mn 26s
>>>>>> Objet : Re: [ros-dev] Year 2038 problem
>>>>>>
>>>>>> This is NT, not unix (thankfully)
>>>>>>
>>>>>>
>>>>>>
>>>>>> From: ros-dev-bounces at reactos.org [mailto:
>>>>>>
>> ros-dev-bounces at reactos.org]
>>
>>>>>> On
>>>>>> Behalf Of Javier Agustěn Fernŕndez Arroyo
>>>>>> Sent: 12 April 2009 00:02
>>>>>> To: ReactOS Development List
>>>>>> Subject: [ros-dev] Year 2038 problem
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi all,
>>>>>> i hope you have already taken into account this:
>>>>>>
>>>>>> http://en.wikipedia.org/wiki/Year_2038_problem
>>>>>>
>>>>>> Regards,
>>>>>> Javier
>>>>>>
>>>>>> _______________________________________________
>>>>>> Ros-dev mailing list
>>>>>> Ros-dev at reactos.org
>>>>>> http://www.reactos.org/mailman/listinfo/ros-dev
>>>>>>
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Ros-dev mailing list
>>>>> Ros-dev at reactos.org
>>>>> http://www.reactos.org/mailman/listinfo/ros-dev
>>>>>
>>>> _______________________________________________
>>>> Ros-dev mailing list
>>>> Ros-dev at reactos.org
>>>> http://www.reactos.org/mailman/listinfo/ros-dev
>>>>
>>>>
>>>>
>> _______________________________________________
>> Ros-dev mailing list
>> Ros-dev at reactos.org
>> http://www.reactos.org/mailman/listinfo/ros-dev
>>
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.org
> http://www.reactos.org/mailman/listinfo/ros-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-dev/attachments/20090412/ff1e6228/attachment-0001.html
More information about the Ros-dev
mailing list