LDAP Timestamp Converter

Convert between LDAP/Active Directory timestamps and Unix timestamps. Because Windows had to be different, obviously.

LDAP to Unix

100-nanosecond intervals since Jan 1, 1601

Unix to LDAP

Seconds since Jan 1, 1970

About LDAP Timestamps

What are LDAP timestamps?

  • • Used by Active Directory and LDAP systems
  • • Measured in 100-nanosecond intervals
  • • Epoch starts January 1, 1601 UTC
  • • Also called "Windows FILETIME"

Common use cases:

  • • Active Directory user account timestamps
  • • Password expiration dates
  • • Account lockout times
  • • File system timestamps on Windows

Quick Reference:

Current Unix: 1759386644
Current LDAP: 134038602440000000
Epoch Difference: 11,644,473,600 seconds (369 years)