Last change
on this file since 134 was
134,
checked in by navarro, 18 years ago
|
change *.pro file properties (del eof-style, del executable, set keywords Id
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Line | |
---|
1 | ;------------------------------------------------------------ |
---|
2 | ;------------------------------------------------------------ |
---|
3 | ;------------------------------------------------------------ |
---|
4 | ;+ |
---|
5 | ; |
---|
6 | ; @file_comments |
---|
7 | ; gives the name of a month |
---|
8 | ; |
---|
9 | ; @categories calendar |
---|
10 | ; |
---|
11 | ; @param mm1 {in}{required} the month number (from 1 to 12) |
---|
12 | ; |
---|
13 | ; @keyword _EXTRA used to pass your keywords to the created procedure. |
---|
14 | ; |
---|
15 | ; @file_comments keyword parameters of string function to specify the format of the month (the C format) can be used. |
---|
16 | ; |
---|
17 | ; @returns the month's name |
---|
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 | ;------------------------------------------------------------ |
---|
29 | ;------------------------------------------------------------ |
---|
30 | ;------------------------------------------------------------ |
---|
31 | FUNCTION monthname, mm1, _EXTRA = ex |
---|
32 | ; |
---|
33 | compile_opt idl2, strictarrsubs |
---|
34 | ; |
---|
35 | return, string(format='(C(CMoA0))',31*(mm1-1), _EXTRA = ex) |
---|
36 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.