source: trunk/SRC/Calendar/monthname.pro @ 163

Last change on this file since 163 was 157, checked in by navarro, 18 years ago

header improvements + xxx doc

  • Property svn:keywords set to Id
File size: 830 bytes
Line 
1;------------------------------------------------------------
2;+
3;
4; @file_comments
5; gives the name of a month
6;
7; @categories
8; Calendar,String
9;
10; @param month {in}{required}
11; the month number (from 1 to 12). Can be scalar or array
12;
13; @keyword _EXTRA
14; used to pass your keywords to other procedures, for example
15; keyword FORMAT of string function (see example bellow)
16;
17; @returns
18; the month names, a string with the same number of elements than month.
19;
20; @examples
21; IDL> name=monthname(2)
22;
23; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
24;                      1 October 2001
25;
26; @version $Id$
27;
28;-
29;------------------------------------------------------------
30FUNCTION monthname, month, _EXTRA = ex
31;
32  compile_opt idl2, strictarrsubs
33;
34   return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex)
35end
Note: See TracBrowser for help on using the repository browser.