Class DateAndTime
- java.lang.Object
-
- org.apache.plc4x.java.s7.readwrite.DateAndTime
-
- All Implemented Interfaces:
Message,Serializable
public class DateAndTime extends Object implements Message
-
-
Constructor Summary
Constructors Constructor Description DateAndTime(short year, short month, short day, short hour, short minutes, short seconds, short msec, byte dow)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)shortgetDay()bytegetDow()shortgetHour()intgetLengthInBits()intgetLengthInBytes()shortgetMinutes()shortgetMonth()shortgetMsec()shortgetSeconds()shortgetYear()inthashCode()voidserialize(WriteBuffer writeBuffer)static DateAndTimestaticParse(ReadBuffer readBuffer)static DateAndTimestaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Method Detail
-
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 short getMsec()
-
getDow
public byte getDow()
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static DateAndTime staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static DateAndTime staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-