Class DateAndTime
java.lang.Object
org.apache.plc4x.java.s7.readwrite.DateAndTime
- All Implemented Interfaces:
Message,Serializable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDateAndTime(short year, short month, short day, short hour, short minutes, short seconds, int msec, byte dow) -
Method Summary
Modifier and TypeMethodDescriptionbooleanshortgetDay()bytegetDow()shortgetHour()intintshortshortgetMonth()intgetMsec()shortshortgetYear()inthashCode()voidserialize(WriteBuffer writeBuffer) static DateAndTimestaticParse(ReadBuffer readBuffer) static DateAndTimestaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
year
protected final short year -
month
protected final short month -
day
protected final short day -
hour
protected final short hour -
minutes
protected final short minutes -
seconds
protected final short seconds -
msec
protected final int msec -
dow
protected final byte dow
-
-
Constructor Details
-
DateAndTime
public DateAndTime(short year, short month, short day, short hour, short minutes, short seconds, int msec, byte dow)
-
-
Method Details
-
getYear
public short getYear() -
getMonth
public short getMonth() -
getDay
public short getDay() -
getHour
public short getHour() -
getMinutes
public short getMinutes() -
getSeconds
public short getSeconds() -
getMsec
public int getMsec() -
getDow
public byte getDow() -
serialize
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
- Throws:
ParseException
-
staticParse
- Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-