IEC_BACNET_DATE (STRUCT)

TYPE IEC_BACNET_DATE : STRUCT

Define for BACnetDate

A Date is a BACnet primitive datatype. A Property Contents containing data of this type will have its tag equal to DATA_TYPE_DATE. A Date contains year, month, day of month and day of week attributes. Each of the attributes has a special value indicating that the attribute is unspecified (e.g. YEAR_UNSPECIFIED). The day of week attribute is not modified by the API to be consistent with the other attributes of the Date. Its the responsibility of th application to check this.

InOut:

Name

Type

Comment

year

IEC_BACNET_WORD

The year in BACnetDate starts with an offset century of 1900 but for the user application convinience the complete century is stored and expected here by the API. So a value of 2012 means year 2012.

month

IEC_BACNET_MONTH

The month of the BACnetDate

dayOfMonth

IEC_BACNET_BYTE

The day of month of the BACnetDate

dayOfWeek

IEC_BACNET_DAY_OF_WEEK

The day of week of the BACnetDate