source: trunk/SRC/ToBeReviewed/CALENDRIER/def_month.pro @ 133

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

english and nicer header (1)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.0 KB
Line 
1;+
2; @todo seb
3;-
4FUNCTION def_month, timave, date
5;
6; translate month number in string
7;
8;
9  compile_opt idl2, strictarrsubs
10;
11   IF strpos(date, '_') GT -1 THEN date = strmid(date, 0, strpos(date, '_'))
12   CASE strmid(timave, 0, 2) OF
13      '1m': BEGIN
14         CASE strmid(date, strlen(date)-2, 2) OF
15            '01': mn = 'January'
16            '02': mn = 'February'
17            '03': mn = 'March'
18            '04': mn = 'April'
19            '05': mn = 'May'
20            '06': mn = 'June'
21            '07': mn = 'July'
22            '08': mn = 'August'
23            '09': mn = 'September'
24            '10': mn = 'October'
25            '11': mn = 'November'
26            '12': mn = 'December'
27            ELSE: mn = '???'
28         ENDCASE
29      END
30      '3m': BEGIN
31         CASE strmid(date, strlen(date)-2, 2) OF
32            '01': mn = 'DJF'
33            '02': mn = 'MMA'
34            '03': mn = 'JJA'
35            '04': mn = 'SON'
36            ELSE: mn = '???'
37         ENDCASE
38      END
39      ELSE:
40   ENDCASE 
41
42   return, mn
43END
Note: See TracBrowser for help on using the repository browser.