eu.id3.bioseal

## Class DateTime

- java.lang.Object
- - eu.id3.bioseal.DateTime

- All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable

      public class DateTime
      extends java.lang.Object
      implements java.lang.AutoCloseable, java.io.Serializable

  Represents a date/time.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DateTime()` Creates a new instance of the DateTime class.
    `DateTime(long handle)` Creates a new instance of the DateTime class.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DateTime

          public DateTime()
                   throws BiosealException

      Creates a new instance of the DateTime class.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### DateTime

          public DateTime(long handle)
                   throws BiosealException

      Creates a new instance of the DateTime class.
      Parameters:
        `handle` - Handle to the DateTime.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

  - ### Method Detail

    - #### close

          public void close()

      Releases all resources used by this DateTime.
      Specified by:
        `close` in interface `java.lang.AutoCloseable`

    - #### finalize

          protected void finalize()

      Finalizer for this class. Finalizers are deprecated since Java 9+. This method is not guaranteed to be called. To release all memory held by this class please be sure to call the close() method.
      Overrides:
        `finalize` in class `java.lang.Object`

    - #### getHandle

          public long getHandle()

      Gets the native handle.
      Returns:
        The native handle.

    - #### getYear

          public int getYear()
                      throws BiosealException

      Gets the the year (1 through 9999, 0 if invalid date).
      Returns:
        The year (1 through 9999, 0 if invalid date).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getMonth

          public int getMonth()
                       throws BiosealException

      Gets the the month (1 through 12).
      Returns:
        The month (1 through 12).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getDay

          public int getDay()
                     throws BiosealException

      Gets the the day (1 through the number of days in month).
      Returns:
        The day (1 through the number of days in month).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getHour

          public int getHour()
                      throws BiosealException

      Gets the the hour (0 through 23, -1 if invalid time).
      Returns:
        The hour (0 through 23, -1 if invalid time).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getMinute

          public int getMinute()
                        throws BiosealException

      Gets the the minute (0 through 59).
      Returns:
        The minute (0 through 59).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### getSecond

          public int getSecond()
                        throws BiosealException

      Gets the the second (0 through 59).
      Returns:
        The second (0 through 59).
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### isValid

          public boolean isValid()
                          throws BiosealException

      Indicates whether the date and/or time is valid.
      Returns:
        true if date and/or time is valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### isTimeValid

          public boolean isTimeValid()
                              throws BiosealException

      Indicates whether the time is valid.
      Returns:
        true if the time is valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### isDateValid

          public boolean isDateValid()
                              throws BiosealException

      Indicates whether the date is valid.
      Returns:
        true if the date is valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### isDateTimeValid

          public boolean isDateTimeValid()
                                  throws BiosealException

      Indicates whether the date and time are valid.
      Returns:
        true if date and time is valid.
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

    - #### toString

          public java.lang.String toString()
                                    throws BiosealException

      Convert the date/time to a string.
      Overrides:
        `toString` in class `java.lang.Object`
      Returns:
        Automatic format is YYYY-MM-DDTHH:MM:SS, YYYY-MM-DD or HH:MM:SS
      Throws:
        `BiosealException` - An error has occurred during Bioseal Library execution.

Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.bioseal