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

Last change on this file since 118 was 118, checked in by pinsard, 18 years ago

add $ in Calendar, Grid, Interpolation, Obsolete and Postscript *.pro files, add svn:keywords Id to all these files, some improvements in header

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.0 KB
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; @keyword _EXTRA used to pass your keywords to the created procedure.
13;
14; @file_comments keyword parameters of string function to specify the format of the month (the C format) can be used.
15;
16; @returns the month's name
17;
18; @examples
19; IDL> name=monthname(2)
20;
21; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
22;                      1 October 2001
23;
24; @version $Id$
25;
26;-
27;------------------------------------------------------------
28;------------------------------------------------------------
29;------------------------------------------------------------
30FUNCTION monthname,  mm1, _EXTRA = ex
31;
32  compile_opt idl2, strictarrsubs
33;
34   return, string(format='(C(CMoA0))',31*(mm1-1), _EXTRA = ex)
35end
Note: See TracBrowser for help on using the repository browser.