ISO8601DateTime Derived Type

type, public :: ISO8601DateTime


Inherits

type~~iso8601datetime~~InheritsGraph type~iso8601datetime ISO8601DateTime type~iso8601date ISO8601Date type~iso8601datetime->type~iso8601date date_ type~iso8601time ISO8601Time type~iso8601datetime->type~iso8601time time_

Inherited by

type~~iso8601datetime~~InheritedByGraph type~iso8601datetime ISO8601DateTime type~iso8601interval ISO8601Interval type~iso8601interval->type~iso8601datetime start_datetime_, end_datetime_

Constructor

public interface ISO8601DateTime

  • public function construct_ISO8601DateTime(isostring, rc) result(datetime)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: isostring
    integer, intent(inout), optional :: rc

    Return Value type(ISO8601DateTime)


Type-Bound Procedures

procedure, public :: get_date

procedure, public :: get_day => get_day_datetime

procedure, public :: get_hour => get_hour_datetime

procedure, public :: get_millisecond => get_millisecond_datetime

procedure, public :: get_minute => get_minute_datetime

procedure, public :: get_month => get_month_datetime

procedure, public :: get_second => get_second_datetime

procedure, public :: get_time

procedure, public :: get_timezone_offset => get_timezone_offset_datetime

procedure, public :: get_year => get_year_datetime

Source Code

   type :: ISO8601DateTime
      private
      type(ISO8601Date) :: date_
      type(ISO8601Time) :: time_
   contains
      procedure, public :: get_date
      procedure, public :: get_time
      procedure, public :: get_year => get_year_datetime
      procedure, public :: get_month => get_month_datetime
      procedure, public :: get_day => get_day_datetime
      procedure, public :: get_hour => get_hour_datetime
      procedure, public :: get_minute => get_minute_datetime
      procedure, public :: get_second => get_second_datetime
      procedure, public :: get_millisecond => get_millisecond_datetime
      procedure, public :: get_timezone_offset => get_timezone_offset_datetime
   end type ISO8601DateTime