Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | inMonthString | |||
integer, | intent(in) | :: | inDefaultMonth |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
INTEGER FUNCTION MonthToMonthNumber(inMonthString,inDefaultMonth)
! FUNCTION INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN May 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Convert the string of the name of the month into numbers 1 to 12
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: inMonthString
INTEGER, INTENT(IN) :: inDefaultMonth
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
IF (SameString(inMonthString,'January')) THEN
MonthToMonthNumber = 1
ELSEIF (SameString(inMonthString,'February')) THEN
MonthToMonthNumber = 2
ELSEIF (SameString(inMonthString,'March')) THEN
MonthToMonthNumber = 3
ELSEIF (SameString(inMonthString,'April')) THEN
MonthToMonthNumber = 4
ELSEIF (SameString(inMonthString,'May')) THEN
MonthToMonthNumber = 5
ELSEIF (SameString(inMonthString,'June')) THEN
MonthToMonthNumber = 6
ELSEIF (SameString(inMonthString,'July')) THEN
MonthToMonthNumber = 7
ELSEIF (SameString(inMonthString,'August')) THEN
MonthToMonthNumber = 8
ELSEIF (SameString(inMonthString,'September')) THEN
MonthToMonthNumber = 9
ELSEIF (SameString(inMonthString,'October')) THEN
MonthToMonthNumber = 10
ELSEIF (SameString(inMonthString,'November')) THEN
MonthToMonthNumber = 11
ELSEIF (SameString(inMonthString,'December')) THEN
MonthToMonthNumber = 12
ELSE
MonthToMonthNumber = inDefaultMonth
ENDIF
END FUNCTION MonthToMonthNumber