conversion unsigned32bit integer into time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vinod Venugopal
    New Member
    • Jul 2007
    • 2

    conversion unsigned32bit integer into time

    Hi All

    I am working on secure file transfer protocol(SFTP) . i need the last modified date
    for display purpose which i am getting through a SFTP method which gives me the value in Unsigned32bit Integer .. i need that to be converted to time ..can anybody help me regarding this
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by Vinod Venugopal
    Hi All

    I am working on secure file transfer protocol(SFTP) . i need the last modified date
    for display purpose which i am getting through a SFTP method which gives me the value in Unsigned32bit Integer .. i need that to be converted to time ..can anybody help me regarding this
    Can you give an example of a value that can be returned and the date that it would be converted to?

    Comment

    • Vinod Venugopal
      New Member
      • Jul 2007
      • 2

      #3
      hi

      thanx for the reply .. when i try to access the time i used to get the value as

      fo example 1156825380.. How can i convert this to time

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by Vinod Venugopal
        hi

        thanx for the reply .. when i try to access the time i used to get the value as

        fo example 1156825380.. How can i convert this to time
        Great noe give us the time or date that this value would map to.

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by r035198x
          Great noe give us the time or date that this value would map to.
          My guess is that its a timestamp (number of seconds from epoch 1/1/1970).
          Today is about 1184198400.

          kind regards,

          Jos

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by JosAH
            My guess is that its a timestamp (number of seconds from epoch 1/1/1970).
            Today is about 1184198400.

            kind regards,

            Jos
            Looks a good guess in the circumstances.
            Hope we've not been deserted again.
            Last edited by r035198x; Jul 12 '07, 01:06 PM. Reason: guess guess guess

            Comment

            Working...