GetDay Function

public function GetDay(time) result(day)

Gets the day of the datetime represented by this instance

Arguments

Type IntentOptional Attributes Name
type(DateTime), intent(in) :: time

Return Value integer(kind=short)


Source Code

FUNCTION  GetDay &
!
(time) &
!
RESULT (day)

IMPLICIT NONE

! Arguments with intent(in):
TYPE (DateTime), INTENT(IN) :: time

! Local variables:
INTEGER (KIND = short) :: day

!------------end of declaration------------------------------------------------

day = time % day

END FUNCTION GetDay