Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cant get Time of Event Log for year 2038 onwards

Cant get Time of Event Log for year 2038 onwards

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhijeet Rajput
    wrote on last edited by
    #1

    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

    K D H 3 Replies Last reply
    0
    • A Abhijeet Rajput

      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

      K Offline
      K Offline
      krmed
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • A Abhijeet Rajput

        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

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A Abhijeet Rajput

          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

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Why you cant use of COleDate?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups