edgeport - v1.0.3
    Preparing search index...

    Function parseMdtm

    • Parses an MDTM (RFC 3659) 213 reply timestamp into a UTC Date.

      The reply text is YYYYMMDDHHMMSS with an optional .sss fractional-seconds suffix, always expressed in UTC. The fields are read positionally and assembled with Date.UTC.

      Parameters

      • text: string

        The 213 reply text, e.g. 20260628120000 or 20260628120000.250.

      Returns Date

      The modification time as a UTC Date.

      If the text is not a 14-digit timestamp.

      1.0.2

      parseMdtm('20260628120000'); // 2026-06-28T12:00:00.000Z