BACnet.Protocol.DateRange (bacstack v0.0.1)
View SourceSummary
Functions
Encodes a BACnet date range into BACnet application tags encoding.
Get a Date.Range
struct for this date range. Only specific dates are allowed.
Parses a BACnet date range from BACnet application tags encoding.
Validates whether the given BACnet date range is in form valid.
Types
@type t() :: %BACnet.Protocol.DateRange{ end_date: BACnet.Protocol.BACnetDate.t(), start_date: BACnet.Protocol.BACnetDate.t() }
Represents a BACnet Date Range.
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnet date range into BACnet application tags encoding.
@spec get_date_range(t()) :: {:ok, Date.Range.t()} | {:error, term()}
Get a Date.Range
struct for this date range. Only specific dates are allowed.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet date range from BACnet application tags encoding.
Validates whether the given BACnet date range is in form valid.
It only validates the struct is valid as per type specification.