public class DateTime
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
DateTime()
Creates a new instance of the DateTime class.
|
DateTime(long handle)
Creates a new instance of the DateTime class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this DateTime.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getDay()
Gets the the day (1 through the number of days in month).
|
long |
getHandle()
Gets the native handle.
|
int |
getHour()
Gets the the hour (0 through 23, -1 if invalid time).
|
int |
getMinute()
Gets the the minute (0 through 59).
|
int |
getMonth()
Gets the the month (1 through 12).
|
int |
getSecond()
Gets the the second (0 through 59).
|
int |
getYear()
Gets the the year (1 through 9999, 0 if invalid date).
|
boolean |
isDateTimeValid()
Indicates whether the date and time are valid.
|
boolean |
isDateValid()
Indicates whether the date is valid.
|
boolean |
isTimeValid()
Indicates whether the time is valid.
|
boolean |
isValid()
Indicates whether the date and/or time is valid.
|
java.lang.String |
toString()
Convert the date/time to a string.
|
public DateTime()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public DateTime(long handle)
throws BiosealException
handle - Handle to the DateTime.BiosealException - An error has occurred during Bioseal Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public int getYear()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getMonth()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getDay()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getHour()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getMinute()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getSecond()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean isValid()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean isTimeValid()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean isDateValid()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean isDateTimeValid()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String toString()
throws BiosealException
toString in class java.lang.ObjectBiosealException - An error has occurred during Bioseal Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.bioseal