public class IeTime56 extends InformationElement
Constructor and Description |
---|
IeTime56(byte[] value) |
IeTime56(long timestamp)
Creates a valid Time56 instance using the given timestamp and the default time zone.
|
IeTime56(long timestamp,
java.util.TimeZone timeZone,
boolean invalid)
Creates a Time56 instance using the given timestamp and time zone.
|
Modifier and Type | Method and Description |
---|---|
int |
getDayOfMonth()
Returns the day of the month.
|
int |
getDayOfWeek()
Returns the day of the week.
|
int |
getHour()
Returns the hour of the day.
|
int |
getMillisecond()
Returns the millisecond of the second.
|
int |
getMinute()
Returns the minute of the hour.
|
int |
getMonth()
Returns the month of the year.
|
int |
getSecond()
Returns the second of the minute.
|
long |
getTimestamp()
Returns the timestamp in ms equivalent to this Time56 instance.
|
long |
getTimestamp(int startOfCentury)
Returns the timestamp in ms equivalent to this Time56 instance.
|
long |
getTimestamp(int startOfCentury,
java.util.TimeZone timeZone)
Returns the timestamp in ms equivalent to this Time56 instance.
|
int |
getYear()
Returns the year in the century.
|
boolean |
isInvalid()
Return true if time value is invalid.
|
boolean |
isSummerTime()
Returns true if summer time (i.e.
|
java.lang.String |
toString() |
public IeTime56(long timestamp, java.util.TimeZone timeZone, boolean invalid)
timestamp
- the timestamp that shall be used to calculate Time56timeZone
- the time zone to useinvalid
- true if the time shall be marked as invalidpublic IeTime56(long timestamp)
timestamp
- the timestamp that shall be used to calculate Time56public IeTime56(byte[] value)
public long getTimestamp(int startOfCentury, java.util.TimeZone timeZone)
startOfCentury
- The timestamp willtimeZone
- the timezone that shall be used to calculate the timestamp.public long getTimestamp(int startOfCentury)
startOfCentury
- The timestamp willpublic long getTimestamp()
public int getMillisecond()
public int getSecond()
public int getMinute()
public int getHour()
public int getDayOfWeek()
public int getDayOfMonth()
public int getMonth()
public int getYear()
public boolean isSummerTime()
public boolean isInvalid()
public java.lang.String toString()
toString
in class java.lang.Object