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

Last change on this file since 378 was 378, checked in by pinsard, 16 years ago

improvements of headers (typo, links, paragraphes, etc)

  • Property svn:keywords set to Id
File size: 799 bytes
RevLine 
[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
[378]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;-
[327]34FUNCTION 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]39end
Note: See TracBrowser for help on using the repository browser.