ldap2date
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Build Status

ldap2date.js

Creates DateTime objects from RFC 4517 Generalized Time strings.

Conversion from DateTime to GeneralizedTime formatted strings is supported as well.

Usage

ldap2date.parse(time)

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.


ldap2date.toGeneralizedTime(date)

Returns a string in GeneralizedTime syntax

  • date - A date object

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    100
    • latest

Version History

Package Sidebar

Install

npm i ldap2date

Weekly Downloads

114

Version

2.0.0

License

MIT

Unpacked Size

10.9 kB

Total Files

7

Last publish

Collaborators

  • rsolomo