Gets the month of the datetime represented by this instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(DateTime), | intent(in) | :: | time |
FUNCTION GetMonth & ! (time) & ! RESULT (month) IMPLICIT NONE ! Arguments with intent(in): TYPE (DateTime), INTENT(IN) :: time ! Local variables: INTEGER (KIND = short) :: month !------------end of declaration------------------------------------------------ month = time % month END FUNCTION GetMonth