public class DlmsTypeDateTime : DlmsTypeSimple
DlmsTypeDateTime | Paramaterless constructor used by XmlSerializer. |
DlmsTypeDateTime(ByteBuffer) | Creates a new instance of DlmsTypeDateTime using raw data returned by the server (meter). |
DlmsTypeDateTime(DateTime) | Creates a new instance of DlmsTypeDateTime using System.DateTime. deviation and clock_status are set to 0. |
DlmsTypeDateTime(DlmsTypeOctetString) | Creates a new instance of DlmsTypeDateTime using octet string returned by the server (meter). |
DlmsTypeDateTime(DateTime, Int64, Byte) | Creates a new instance of DlmsTypeDateTime using System.DateTime. |
DlmsTypeDateTime(DateTime, TimeZoneInfo, Boolean) | Creates a new instance of DlmsTypeDateTime and TimeZoneInfo. |
DlmsTypeDateTime(UInt16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Int16, Byte) | Creates a new instance of DlmsTypeDateTime using its parts. |
ClockStatus | Returns the clock status value. |
DayOfMonth | Returns the day of month value. |
DayOfWeek | Returns the day of week value. |
Deviation | Returns the deviation value. |
Hour | Returns the hour value. |
Hundredth | Returns the hundredth value. |
Minute | Returns the minutevalue. |
Month | Returns the month value. |
Second | Returns the second value. |
TypeName |
Returns name of the type according to BB 4.1.5.
(Overrides DlmsTypeTypeName) |
ValidateHundreths | Gets or sets if hundreths of seconds will be validated for date time value. |
ValueAsDateTime |
Returns a DateTime representation of date-time value.
(Overrides DlmsTypeValueAsDateTime) |
ValueAsDouble |
Returns the equivalent OLE Automation date representation of date-time value.
(Overrides DlmsTypeValueAsDouble) |
ValueAsInvariantString |
A string representation of date-time value used by XmlSerializer.
String format: yyyy-MM-dd-w#HH:mm:ss.ff#zzz#c
yyyy = year, MM = month, dd = dayOfMonth, w = dayOfWeek, HH = hour, mm = minute, ss = second, ff = hundredth, zzz = deviation, c = clockStatus
It is highly recommended not to change this format because of (de)serialization.
Example
Example of a string: 2013-04-18-4#12:16:48.20#+01:05#3
(Overrides DlmsTypeSimpleValueAsInvariantString) |
ValueAsRawData |
Returns value as bytes that can be sent to the server (meter).
(Overrides DlmsTypeSimpleValueAsRawData) |
ValueAsString |
Returns a string representation of date-time value for displaying.
(Overrides DlmsTypeValueAsString) |
ValueIsDateTime |
Returns true if the date-time value represents valid date, otherwise 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. |
FromDlmsDayOfWeek | Converts DLMS representation of day of week to .NET representation. |
ToDlmsDayOfWeek | Converts .NET representation of day of week to DLMS representation. |
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 |