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

Last change on this file since 157 was 157, checked in by navarro, 18 years ago

header improvements + xxx doc

  • Property svn:keywords set to Id
File size: 830 bytes
RevLine 
[9]1;------------------------------------------------------------
2;+
3;
[126]4; @file_comments
5; gives the name of a month
[9]6;
[157]7; @categories
8; Calendar,String
[126]9;
[137]10; @param month {in}{required}
11; the month number (from 1 to 12). Can be scalar or array
[9]12;
[137]13; @keyword _EXTRA
14; used to pass your keywords to other procedures, for example
15; keyword FORMAT of string function (see example bellow)
[118]16;
[137]17; @returns
18; the month names, a string with the same number of elements than month.
[9]19;
[126]20; @examples
[93]21; IDL> name=monthname(2)
[9]22;
[93]23; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
[9]24;                      1 October 2001
[118]25;
26; @version $Id$
27;
[9]28;-
29;------------------------------------------------------------
[137]30FUNCTION monthname, month, _EXTRA = ex
[114]31;
32  compile_opt idl2, strictarrsubs
33;
[137]34   return, string(format='(C(CMoA0))',31*(month-1), _EXTRA = ex)
[9]35end
Note: See TracBrowser for help on using the repository browser.