TimeClass Module



Interfaces

public interface operator(+)

public interface to_datetime

  • public function to_datetime_timeclass(year, month, date, hour, minutes, seconds) result(ret)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in), optional :: year
    integer(kind=int32), intent(in), optional :: month
    integer(kind=int32), intent(in), optional :: date
    integer(kind=int32), intent(in), optional :: hour
    integer(kind=int32), intent(in), optional :: minutes
    real(kind=real64), intent(in), optional :: seconds

    Return Value type(datetime_)


Derived Types

type, public ::  datetime_

Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: year
integer(kind=int32), public :: month
integer(kind=int32), public :: date
integer(kind=int32), public :: hour
integer(kind=int32), public :: minutes
real(kind=real64), public :: seconds

Type-Bound Procedures

procedure, public :: show => show_datetime_timeclass

type, public ::  time_

Components

Type Visibility Attributes Name Initial
character(len=8), public :: date
character(len=10), public :: time
character(len=5), public :: zone
integer(kind=int32), public :: values(8)

Type-Bound Procedures

procedure, public :: start => starttime
procedure, public :: show => showtime
procedure, public :: clear => cleartime
procedure, public :: reset => cleartime
procedure, public :: sleep => sleeptime
procedure, public :: DateAndTime => DateAndTimetime
procedure, public :: t => tTime
procedure, public :: freq => freqTime

Functions

public function to_datetime_timeclass(year, month, date, hour, minutes, seconds) result(ret)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in), optional :: year
integer(kind=int32), intent(in), optional :: month
integer(kind=int32), intent(in), optional :: date
integer(kind=int32), intent(in), optional :: hour
integer(kind=int32), intent(in), optional :: minutes
real(kind=real64), intent(in), optional :: seconds

Return Value type(datetime_)

public function add_two_datetime(dt1, dt2) result(ret)

Arguments

Type IntentOptional Attributes Name
type(datetime_), intent(in) :: dt1
type(datetime_), intent(in) :: dt2

Return Value type(datetime_)

public function number_of_date_for_month(year, month) result(ret)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: year
integer(kind=int32), intent(in) :: month

Return Value integer(kind=int32)

public function DateAndTimetime(obj) result(date_time)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(inout) :: obj

Return Value character(len=:), allocatable

public function tTime(obj, t_range, hz, max_sample) result(t_axis)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(in) :: obj
real(kind=real64), intent(in) :: t_range(1:2)
real(kind=real64), intent(in) :: hz
integer(kind=int32), intent(in), optional :: max_sample

Return Value real(kind=real64), allocatable, (:)

public function freqTime(obj, time_axis) result(freq)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(in) :: obj
real(kind=real64), intent(in) :: time_axis(:)

Return Value real(kind=real64), allocatable, (:)


Subroutines

public subroutine show_datetime_timeclass(dt)

Arguments

Type IntentOptional Attributes Name
class(datetime_), intent(in) :: dt

public subroutine starttime(obj)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(inout) :: obj

public subroutine showtime(obj)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(inout) :: obj

public subroutine cleartime(obj)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(inout) :: obj

public subroutine sleeptime(obj, time)

Arguments

Type IntentOptional Attributes Name
class(time_), intent(inout) :: obj
integer(kind=int32) :: time