Cant get Time of Event Log for year 2038 onwards
-
Hello, while reading event Log records, I need to read generated time of Event Log. If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only. Use of COleDateTime is not possible. Please suggest if there is any solution for this. Abhijeet
-
Hello, while reading event Log records, I need to read generated time of Event Log. If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only. Use of COleDateTime is not possible. Please suggest if there is any solution for this. Abhijeet
CTime used to be limited as you mentioned - 2038, however (at least with VS2005) that has been modified and now allows dates from 1/1/1970 to 12/31/3000. See MSDN[^] for more info. Sounds like you need to upgrade since you say you can't use COleDateTime. Hope that helps.
Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
Hello, while reading event Log records, I need to read generated time of Event Log. If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only. Use of COleDateTime is not possible. Please suggest if there is any solution for this. Abhijeet
Abhijeet Rajput wrote:
Use of COleDateTime is not possible.
Why not?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hello, while reading event Log records, I need to read generated time of Event Log. If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only. Use of COleDateTime is not possible. Please suggest if there is any solution for this. Abhijeet
Why you cant use of COleDate?