Parses LDAP Generalized Time Syntax
npm install ldap2date
Creates DateTime objects from RFC 4517 Generalized Time strings.
Conversion from DateTime to GeneralizedTime formatted strings is supported as well.
Returns a new Date() object
- time - A LDAP Generalized-Time string
null will be returned if the time string cannot be parsed into a valid Date object.
---
Returns a string in GeneralizedTime syntax
- date - A date object