.. index:: 
  !DateTime Class

.. _id3_bioseal_date_time_class:

===============================================================================
DateTime Class
===============================================================================

Namespace: :ref:`id3.Bioseal<reference_bioseal>`

.. toctree::
  :hidden:

  day<day>
  hour<hour>
  isDateTimeValid<is_date_time_valid>
  isDateValid<is_date_valid>
  isTimeValid<is_time_valid>
  isValid<is_valid>
  minute<minute>
  month<month>
  second<second>
  toString<to_string>
  year<year>


Definition
----------
.. line-block::
    Represents a date/time.


Properties
----------

.. list-table:: 
  :width: 100%
  :widths: 30 5 65
  :header-rows: 1

  * - Name
    - Type
    - Description
  * - :ref:`day<id3_bioseal_date_time_day_class_member>`
    - int
    - The day (1 through the number of days in month).
  * - :ref:`hour<id3_bioseal_date_time_hour_class_member>`
    - int
    - The hour (0 through 23, -1 if invalid time).
  * - :ref:`minute<id3_bioseal_date_time_minute_class_member>`
    - int
    - The minute (0 through 59).
  * - :ref:`month<id3_bioseal_date_time_month_class_member>`
    - int
    - The month (1 through 12).
  * - :ref:`second<id3_bioseal_date_time_second_class_member>`
    - int
    - The second (0 through 59).
  * - :ref:`year<id3_bioseal_date_time_year_class_member>`
    - int
    - The year (1 through 9999, 0 if invalid date).

Methods
-------

.. list-table:: 
  :width: 100%
  :widths: 30 70
  :header-rows: 1

  * - Name
    - Description
  * - :ref:`isDateTimeValid<id3_bioseal_date_time_is_date_time_valid_class_method>`
    - Indicates whether the date and time are valid.
  * - :ref:`isDateValid<id3_bioseal_date_time_is_date_valid_class_method>`
    - Indicates whether the date is valid.
  * - :ref:`isTimeValid<id3_bioseal_date_time_is_time_valid_class_method>`
    - Indicates whether the time is valid.
  * - :ref:`isValid<id3_bioseal_date_time_is_valid_class_method>`
    - Indicates whether the date and/or time is valid.
  * - :ref:`toString<id3_bioseal_date_time_to_string_class_method>`
    - Convert the date/time to a string.
