Last change
on this file since 333 was
327,
checked in by pinsard, 17 years ago
|
modification of headers : mainly blanks around = sign for keywords in declaration of function and pro
|
-
Property svn:keywords set to
Id
|
File size:
799 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 | FUNCTION monthname, month, _EXTRA=ex |
---|
35 | ; |
---|
36 | compile_opt idl2, strictarrsubs |
---|
37 | ; |
---|
38 | return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex) |
---|
39 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.