NEXT_MONTH
Name
NEXT_MONTH
Purpose
This functions returns the year and month of the month following
the input argument date. The output day is set to 1; and hour, minute, and
second are set to 0.
Category
Date and time calculations.
Calling Sequence
next = NEXT_MONTH(date)
Input
date : CDATE or JTIME structure
Output
CDATE or CDATE_NO_LEAP structure containing the date of the first
day of the month following the input date.
Keywords
None.
Procedure
If month is equal to 12, increment the year. Increment the month modulo 12.
Modification History
K. Bowman, 2004-03-30.
K. Bowman, 2005-03-25. Added NO_LEAP support.