public class DlmsTypeDate : DlmsTypeSimple| DlmsTypeDate | Paramaterless constructor used by XmlSerializer. |
| DlmsTypeDate(ByteBuffer) | Creates a new instance of DlmsTypeDate using raw data returned by the server (meter). |
| DlmsTypeDate(DateTime) | Creates a new instance of DlmsTypeDate using System.DateTime. |
| DlmsTypeDate(DlmsTypeOctetString) | Creates a new instance of DlmsTypeDate using Octet string. |
| DlmsTypeDate(UInt16, Byte, Byte, Byte) | Creates a new instance of DlmsTypeDate using its parts. |
| DayOfMonth | Returns the day of month value. |
| DayOfWeek | Returns the day of week value. |
| Month | Returns the month value. |
| TypeName |
Returns name of the type according to BB 4.1.5.
(Overrides DlmsTypeTypeName) |
| ValueAsDateTime |
Returns a DateTime representation of date value.
(Overrides DlmsTypeValueAsDateTime) |
| ValueAsDouble |
Returns the equivalent OLE Automation date representation of date value.
(Overrides DlmsTypeValueAsDouble) |
| ValueAsInvariantString |
Returns a string representation of date value used by XmlSerializer.
String format: yyyy-MM-dd-w
yyyy = year, MM = month, dd = dayOfMonth, w = dayOfWeek
Example
Example of returned string: 2013-04-18-4
(Overrides DlmsTypeSimpleValueAsInvariantString) |
| ValueAsRawData |
Returns value as bytes that can be sent to the server (meter).
(Overrides DlmsTypeSimpleValueAsRawData) |
| ValueAsString |
Returns a string representation of date value for displaying.
(Overrides DlmsTypeValueAsString) |
| ValueIsDateTime |
Returns true if the date value represents valid date, otherwise it returns false.
(Overrides DlmsTypeValueIsDateTime) |
| ValueIsMax |
Returns true if the value is equal to its maximal possible value which can indicate null for some meter types.
(Inherited from DlmsType) |
| ValueIsNumber |
Indicates that ValueAsDouble is available.
(Overrides DlmsTypeValueIsNumber) |
| Year | Returns the year value. |
| ToString |
Returns string representation of the value. It returns ValueAsString.
(Inherited from DlmsType) |
| TYPE_ID | COSEM type ID |
| VALUE_SIZE | Size in bytes in raw data |