ISO8601Time Derived Type

type, public :: ISO8601Time


Inherited by

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

Constructor

public interface ISO8601Time

  • public function construct_ISO8601Time(isostring, rc) result(time)

    Arguments

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

    Return Value type(ISO8601Time)


Type-Bound Procedures

procedure, public :: get_hour

  • public function get_hour(self)

    Arguments

    Type IntentOptional Attributes Name
    class(ISO8601Time), intent(in) :: self

    Return Value integer

procedure, public :: get_millisecond

  • public function get_millisecond(self)

    Arguments

    Type IntentOptional Attributes Name
    class(ISO8601Time), intent(in) :: self

    Return Value integer

procedure, public :: get_minute

  • public function get_minute(self)

    Arguments

    Type IntentOptional Attributes Name
    class(ISO8601Time), intent(in) :: self

    Return Value integer

procedure, public :: get_second

  • public function get_second(self)

    Arguments

    Type IntentOptional Attributes Name
    class(ISO8601Time), intent(in) :: self

    Return Value integer

procedure, public :: get_timezone_offset

Source Code

   type :: ISO8601Time
      private
      integer :: hour_
      integer :: minute_
      integer :: second_
      integer :: millisecond_
      ! Timezone is stored as offset from Z timezone in minutes
      ! Currently, only timezone Z offset is used.
      integer :: timezone_offset_ = Z
   contains
      procedure, public :: get_hour
      procedure, public :: get_minute
      procedure, public :: get_second
      procedure, public :: get_millisecond
      procedure, public :: get_timezone_offset
   end type ISO8601Time