Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2003
    Location
    PHP-LAND
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Windows 2000 Server / Active Directory timestamp

    Hello, when I get data with PHP from Active Directory, there is a key named "lastlogon" with the value "127698735878906250". I guess this is a some kind of Windows timestamp. Does somebody know, how to convert it to human-readable format?

  • #2
    New to the CF scene
    Join Date
    Oct 2009
    Location
    Berlin, Germany
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    you may have already found out how this works, or don't care anymore...
    Microsoft calculates timestamps in 100 nanoseconds from 01.01.1601 00:00AM.
    With knowing this there are a lot of ways getting a correct readable time.
    One way definitly is doing some thinking and writing your own script, but there are some scripts and webpages who did this before:

    Visual Basic: http://techtasks.com/code/viewbookcode/1607
    Active Directory Plugin [German webpage, but english plugin, I think]: http://blog.dikmenoglu.de/PermaLink,...259ca559c.aspx

    The fast way: calculate in web [English/German]: www.redhelp.de

    hopefully this helps someone


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •