;------------------------------------------------------------ ;+ ; ; @file_comments ; gives the name of a month ; ; @categories calendar, string ; ; @param month {in}{required} ; the month number (from 1 to 12). Can be scalar or array ; ; @keyword _EXTRA ; used to pass your keywords to other procedures, for example ; keyword FORMAT of string function (see example bellow) ; ; @returns ; the month names, a string with the same number of elements than month. ; ; @examples ; IDL> name=monthname(2) ; ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) ; 1 October 2001 ; ; @version $Id$ ; ;- ;------------------------------------------------------------ FUNCTION monthname, month, _EXTRA = ex ; compile_opt idl2, strictarrsubs ; return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex) end