;+ ; ; @file_comments ; gives the name of a month ; ; @categories ; Calendar,String ; ; @param month {in}{required} {type=scalar or array} ; the month number (from 1 to 12). ; ; @keyword _EXTRA ; Used to pass keywords ; ; @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