Methods

  • This command is used to set the DST offsets for a node.

    • If the length of DSTOffset is larger than DSTOffsetListMaxSize, the node shall respond with RESOURCE_EXHAUSTED.

    • Else if the list entries do not conform to the list requirements for DSTOffset attribute, the node shall respond with CONSTRAINT_ERROR.

    If there are no errors in the list, the DSTOffset field shall be copied to the DSTOffset attribute.

    If the DSTOffset attribute change causes a corresponding change to the DST state, a DSTStatus event shall be generated. If the list is empty, the node shall generate a DSTTableEmpty event.

    Returns MaybePromise

    MatterSpecification.v13.Core § 11.17.9.5

  • This command is used to set the time zone of the node.

    If the given list is larger than the TimeZoneListMaxSize, the node shall respond with RESOURCE_EXHAUSTED and the TimeZone attribute shall NOT be updated.

    If the given list does not conform to the list requirements in TimeZone attribute the node shall respond with a CONSTRAINT_ERROR and the TimeZone attribute shall NOT be updated.

    If there are no errors in the list, the TimeZone field shall be copied to the TimeZone attribute. A TimeZoneStatus event shall be generated with the new time zone information.

    If the node supports a time zone database and it has information available for the time zone that will be applied, it may set its DSTOffset attribute, otherwise the DSTOffset attribute shall be set to an empty list. A DSTTableEmpty event shall be generated if the DSTOffset attribute is empty. A DSTStatus event shall be generated if the node was previously applying a DST offset.

    Returns MaybePromise<TimeSynchronization.SetTimeZoneResponse>

    MatterSpecification.v13.Core § 11.17.9.3