Last change
on this file since 325 was
325,
checked in by pinsard, 17 years ago
|
modification of some headers (+some corrections) to prepare usage of the new idldoc
|
-
Property svn:keywords set to
Id
|
File size:
801 bytes
|
Rev | Line | |
---|
[9] | 1 | ;+ |
---|
| 2 | ; |
---|
[126] | 3 | ; @file_comments |
---|
| 4 | ; gives the name of a month |
---|
[9] | 5 | ; |
---|
[231] | 6 | ; @categories |
---|
[157] | 7 | ; Calendar,String |
---|
[126] | 8 | ; |
---|
[231] | 9 | ; @param month {in}{required} {type=scalar or array} |
---|
| 10 | ; the month number (from 1 to 12). |
---|
[9] | 11 | ; |
---|
[137] | 12 | ; @keyword _EXTRA |
---|
[318] | 13 | ; Used to pass keywords to <proidl>string</proidl> function |
---|
[118] | 14 | ; |
---|
[137] | 15 | ; @returns |
---|
| 16 | ; the month names, a string with the same number of elements than month. |
---|
[9] | 17 | ; |
---|
[126] | 18 | ; @examples |
---|
[318] | 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 |
---|
[9] | 25 | ; |
---|
[231] | 26 | ; @history |
---|
| 27 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
[9] | 28 | ; 1 October 2001 |
---|
[118] | 29 | ; |
---|
[231] | 30 | ; @version |
---|
| 31 | ; $Id$ |
---|
[118] | 32 | ; |
---|
[9] | 33 | ;- |
---|
[137] | 34 | FUNCTION monthname, month, _EXTRA = ex |
---|
[114] | 35 | ; |
---|
| 36 | compile_opt idl2, strictarrsubs |
---|
| 37 | ; |
---|
[137] | 38 | return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex) |
---|
[9] | 39 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.