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

Last change on this file since 318 was 318, checked in by smasson, 17 years ago

header cleaning

  • Property svn:keywords set to Id
File size: 803 bytes
Line 
1;+
2;
3; @file_comments
4; gives the name of a month
5;
6; @categories
7; Calendar,String
8;
9; @param month {in}{required} {type=scalar or array}
10; the month number (from 1 to 12).
11;
12; @keyword _EXTRA
13; Used to pass keywords to <proidl>string</proidl> function
14;
15; @returns
16; the month names, a string with the same number of elements than month.
17;
18; @examples
19;   IDL> print, monthname([2,3])
20;   February March
21;   IDL> print, monthname(2, format='(C(CMOA0))')
22;   FEBRUARY
23;   IDL> print, monthname(2, format='(C(CmoA03,":"))')
24;   feb
25;
26; @history
27; Sebastien Masson (smasson\@lodyc.jussieu.fr)
28;                      1 October 2001
29;
30; @version
31; $Id$
32;
33;-
34;
35FUNCTION monthname, month, _EXTRA = ex
36;
37  compile_opt idl2, strictarrsubs
38;
39   return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex)
40end
Note: See TracBrowser for help on using the repository browser.