public class DlmsTypeTime : DlmsTypeSimple
DlmsTypeTime | Paramaterless constructor used by XmlSerializer |
DlmsTypeTime(ByteBuffer) | Creates a new instance of DlmsTypeTime using raw data returned by the server (meter). |
DlmsTypeTime(DateTime) | Creates a new instance of DlmsTypeTime using System.DateTime. |
DlmsTypeTime(DlmsTypeOctetString) | Creates a new instance of DlmsTypeTime using octet string |
DlmsTypeTime(Byte, Byte, Byte, Byte) | Creates a new instance of DlmsTypeDate using hour, minute, second, hundredth. |
Hour | Returns the hour value. |
Hundredth | Returns the hundredth value. |
Minute | Returns the minutevalue. |
Second | Returns the second value. |
TypeName |
Returns name of the type according to BB 4.1.5.
(Overrides DlmsTypeTypeName) |
ValueAsDateTime |
Returns a DateTime representation of time value.
Date part is set to actual date.
(Overrides DlmsTypeValueAsDateTime) |
ValueAsDouble |
Returns the equivalent OLE Automation date representation of time value.
Returned value is from the interval [0, 1).
6 A.M. is represented by 0.25, 6 P.M. is represented by 0.75
(Overrides DlmsTypeValueAsDouble) |
ValueAsInvariantString |
Returns a string representation of time value used by XmlSerializer.
String format: HH:mm:ss.ff
HH = hour, mm = minute, ss = second, ff = hundredth
Example
Example of returned string: 12:16:48.20
(Overrides DlmsTypeSimpleValueAsInvariantString) |
ValueAsRawData |
Returns value as bytes that can be sent to the server (meter).
(Overrides DlmsTypeSimpleValueAsRawData) |
ValueAsString |
Returns a string representation of time value.
(Overrides DlmsTypeValueAsString) |
ValueIsDateTime |
Returns true if the time value represents valid time, 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) |
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 |