node-pdu
    Preparing search index...

    Class SCTS

    Represents the Service Centre Time Stamp (SCTS) of an SMS message.

    Marks the time and date the SMSC received the message, used in delivery reports and incoming messages for timing analysis and record-keeping, providing a temporal reference for the message's handling.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a Service Centre Time Stamp (SCTS) instance.

      Parameters

      • date: Date

        The date object representing the time and date the message was received

      • OptionaltzOff: number

        The time zone offset in minutes, defaults to the local time zone offset if not provided

      Returns SCTS

    Properties

    time: number
    tzOff: number

    Methods

    • Converts the SCTS to an ISO 8601 string format with a custom time zone offset.

      This method formats the date and time into an easily readable ISO 8601 format, adjusting for the stored time zone offset to reflect the local time at the service centre.

      Returns string

      The SCTS as an ISO 8601 formatted string with a custom time zone offset.

    • Converts the SCTS to a string representation based on the SMS PDU specifications.

      This method formats the service centre time stamp into a semi-octet representation suitable for inclusion in a PDU message, converting the date and time components and including the time zone in a standardized format.

      Returns string

      The SCTS as a string formatted according to the SMS PDU specifications