How to Convert Decimal value Which isn't Time Stamp into DateTime Value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aext
    New Member
    • Jul 2008
    • 8

    How to Convert Decimal value Which isn't Time Stamp into DateTime Value

    Hi

    I tried to read time value from file and I found that this value is decimal one and not a time stamp this value (29940722) was shown .

    How can I convert it to a real date/time value.

    please help me.

    Aext
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    What does that number represent? If I interpret that number as seconds from an
    Epoch I end up in July 29th 2007 so that is probably wrong. It's hexadecimal
    representation doesn't make much sense either.

    You have to know how that number was constructed otherwise you can't convert
    anything at all.

    kind regards,

    Jos

    Comment

    • aext
      New Member
      • Jul 2008
      • 8

      #3
      Originally posted by JosAH
      What does that number represent? If I interpret that number as seconds from an
      Epoch I end up in July 29th 2007 so that is probably wrong. It's hexadecimal
      representation doesn't make much sense either.

      You have to know how that number was constructed otherwise you can't convert
      anything at all.

      kind regards,

      Jos
      Thank you for your reply .
      Can you told me how do you know Retrieve the value (July 29th 2007 ) from that decimal number ,and if you use any function please told me , because i need it .

      Kind regards ,

      Aext

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by aext
        Thank you for your reply .
        Can you told me how do you know Retrieve the value (July 29th 2007 ) from that decimal number ,and if you use any function please told me , because i need it .

        Kind regards ,

        Aext
        I simply subtracted that many seconds from today and I used a little calculator
        for the job ;-)

        kind regards,

        Jos

        Comment

        • aext
          New Member
          • Jul 2008
          • 8

          #5
          Originally posted by JosAH
          I simply subtracted that many seconds from today and I used a little calculator
          for the job ;-)

          kind regards,

          Jos
          Thank you very much.
          You make it easy for me, I thought that it needs specific function as that for
          DWORD values in Windows Registry.

          Kind Regards,

          Aext

          Comment

          Working...