class

Matter::Cluster::TimeFormatLocalizationCluster

Inherits Matter::Cluster::Base < Reference < Object

Time Format Localization Cluster (0x002C)

Provides attributes for determining and configuring time and date formatting information that a node uses when conveying values to a user. This cluster supports both hour format (12hr/24hr) and calendar format preferences.

Features:

  • CalendarFormat (CALFMT): Calendar format support

Specification: Matter 1.4 § 11.4

Constants

ATTR_ACTIVE_CALENDAR_TYPE = 1_u32
ATTR_HOUR_FORMAT = 0_u32

Attributes

ATTR_SUPPORTED_CALENDAR_TYPES = 2_u32
CLUSTER_ID = 44_u32

Constructors

new(endpoint_id : DataType::EndpointNumber, feature_map : Feature = Feature::None, hour_format : HourFormat = HourFormat::Hr24, active_calendar_type : CalendarType | Nil = nil, supported_calendar_types : Array(CalendarType) | Nil = nil)
Source

Class methods

cluster_id

Time Format Localization Cluster (0x002C)

Provides attributes for determining and configuring time and date formatting information that a node uses when conveying values to a user. This cluster supports both hour format (12hr/24hr) and calendar format preferences.

Features:

  • CalendarFormat (CALFMT): Calendar format support

Specification: Matter 1.4 § 11.4

Source

Instance methods

active_calendar_type

Active calendar type (writable, optional - requires CalendarFormat feature)

Source
active_calendar_type=(active_calendar_type : CalendarType | Nil)

Active calendar type (writable, optional - requires CalendarFormat feature)

Source
attributes

Get all attribute metadata

Source
calendar_format_enabled?

Check if CalendarFormat feature is enabled

Source
commands

Get all command metadata

Source
feature_map

Feature map

Source
feature_map=(feature_map : Feature)

Feature map

Source
hour_format

Hour format preference (writable)

Source
hour_format=(hour_format : HourFormat)

Hour format preference (writable)

Source
name

Get cluster name

Source
on_calendar_changed
Source
on_hour_format_changed
Source
read_attribute(attribute_id : UInt32, fabric_index : UInt8 | Nil = nil) : Bytes | InteractionModel::Status

Read an attribute value The fabric_index parameter is optional and used for fabric-scoped attributes like CurrentFabricIndex in OperationalCredentialsCluster

Source
supported_calendar_types

Supported calendar types (fixed, optional - requires CalendarFormat feature)

Source
supported_calendar_types=(supported_calendar_types : Array(CalendarType) | Nil)

Supported calendar types (fixed, optional - requires CalendarFormat feature)

Source
write_attribute(attribute_id : UInt32, value : Bytes) : InteractionModel::Status

Write an attribute value

Source

Nested types