>  Docs Center  >  Libraries  >  Daithi  >  MONTH_DAY

MONTH_DAY

MONTH_DAY

Name


MONTH_DAY

Purpose


This function returns the first and last days of the month.

Category


Calendar

Calling Sequence


Result = MONTH_DAY( Index )

Inputs


Index: The index number of the calendar month (0-11), of
type integer. Can be a scalar or array.

Outputs


Result: Returns the index number, with respect to the calendar year,
of the first and last days of the specified month.

Keyword Parameters


ALL: If set, the index values of all of the days in the month(s)
                will be returned. Otherwise, only the first and last are
                returned.
      LEAPYEAR: If set, the first and last days will be for months in leap
                years.

Uses


Procedure


This function returns a vector with the index number, with respect to
the calendar year, of the first and last days of the month "Index."

Example


Get the end days of calendar month #1 (i.e. February).
result = MONTH_DAY( 1 )
Result = [ 31, 58 ]

Modification History


  Written by: Daithi A. Stone, 2002-01-13.
      Modified: Benjamin S. Grandey, 2010-02-05 (added LEAPYEAR
                      keyword).



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us