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

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

new compilation options (compile_opt idl2, strictarrsubs) in each routine

  • Property svn:executable set to *
File size: 941 bytes
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5;
6; @file_comments gives the name of a month
7;
8; @categories calendar
9;
10; @param mm1 {in}{required}  the month number (from 1 to 12)
11;
12; @file_comments keyword parameters of string function to specify the format of the month (the C format) can be used.
13;
14; @returns the month's name
15;
16; @examples
17; IDL> name=monthname(2)
18;
19; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
20;                      1 October 2001
21;-
22;------------------------------------------------------------
23;------------------------------------------------------------
24;------------------------------------------------------------
25FUNCTION monthname,  mm1, _extra = ex
26;
27  compile_opt idl2, strictarrsubs
28;
29   return, string(format='(C(CMoA0))',31*(mm1-1), _extra = ex)
30end
Note: See TracBrowser for help on using the repository browser.