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

Last change on this file since 137 was 137, checked in by smasson, 18 years ago

review of Colors and Calendar routines

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