Error on CTime (y2k) 
Author Message
 Error on CTime (y2k)

Hi, everybody!

I use VC++5.0

Following very simple codes cause ASSERTION_FAIL !

{
    CTime tmTest(2100, 01,01, 0, 0, 0);

Quote:
}

Is there any solution for this problem?

Thanks.



Mon, 29 Apr 2002 03:00:00 GMT  
 Error on CTime (y2k)

Quote:
> Hi, everybody!

> I use VC++5.0

> Following very simple codes cause ASSERTION_FAIL !

> {
>     CTime tmTest(2100, 01,01, 0, 0, 0);
> }

> Is there any solution for this problem?

What ASSERT ?

Can't you use COleDateTime ?



Mon, 29 Apr 2002 03:00:00 GMT  
 Error on CTime (y2k)

Quote:
> I use VC++5.0

> Following very simple codes cause ASSERTION_FAIL !

> {
>     CTime tmTest(2100, 01,01, 0, 0, 0);
> }

> Is there any solution for this problem?

CTime uses time_t, which does not work for dates before 1971
or after 2028. For more, see
http://msdn.microsoft.com/library/welcome/dsmsdn/msdn_090798
a.htm.

~ Tim



Mon, 29 Apr 2002 03:00:00 GMT  
 Error on CTime (y2k)
It seems that CTime does only support dates ranging from 1970 to 2038. You
may want to use COleDateTime instead.

--
Ignacio Burgue?o
Universidad ORT Uruguay


Quote:
>Hi, everybody!

>I use VC++5.0

>Following very simple codes cause ASSERTION_FAIL !

>{
>    CTime tmTest(2100, 01,01, 0, 0, 0);
>}

>Is there any solution for this problem?

>Thanks.



Tue, 30 Apr 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. CTime and Y2K

2. Linker Error on asctime, ctime, localtime functions...

3. error LNK2001: using CTime.Format

4. CTime error?!

5. CRedordset::DoField Exschange error on CTime field

6. CResultSet and CTime error !

7. Y2K Conformance with C/C++

8. Y2K bug in perspective

9. Y2K Compliance

10. Y2K problem *** TOP URGENT ***

11. Worried about Y2K?

12. A Y2K C code checker

 

 
Powered by phpBB® Forum Software