Changeset 297 for trunk/SRC/Calendar
- Timestamp:
- 09/25/07 17:09:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Calendar/julday.pro
r292 r297 11 11 ; Calendar 12 12 ; 13 ; @param MONTH {in}{ required} {type=scalar (integer or double) or array of scalars}13 ; @param MONTH {in}{optional} {type=scalar (integer or double) or array of scalars} 14 14 ; Number of the desired month (1 = January, ..., 12 = December). 15 15 ; 16 ; @param DAY {in}{ required} {type=scalar (integer or double) or array of scalars}16 ; @param DAY {in}{optional} {type=scalar (integer or double) or array of scalars} 17 17 ; Number of day of the month. 18 18 ; 19 ; @param YEARin {in}{ required} {type=scalar (integer or double) or array of scalars}19 ; @param YEARin {in}{optional} {type=scalar (integer or double) or array of scalars} 20 20 ; Number of the desired year.Year parameters must be valid 21 21 ; values from the civil calendar. Years B.C.E. are represented … … 93 93 IF n_elements(key_caltype) EQ 0 THEN key_caltype = 'greg' 94 94 if keyword_set(ndayspm) then key_caltype = '360d' 95 96 NP = n_params() 97 ; Process the input, if all are missing, use today's date. 98 IF (np EQ 0) THEN RETURN, SYSTIME(/JULIAN) 99 IF (np LT 3) THEN ras = report('Incorrect number of arguments.') 95 100 ; 96 101 YEAR = long(yearin) 97 102 zero = where(year EQ 0, cnt) 98 103 IF cnt NE 0 THEN YEAR[zero] = 654321L 99 100 NP = n_params()101 ; Process the input, if all are missing, use todays date.102 IF (np EQ 0) THEN RETURN, SYSTIME(/JULIAN)103 IF (np LT 3) THEN ras = report('Incorrect number of arguments.')104 104 ; 105 105 CASE key_caltype OF
Note: See TracChangeset
for help on using the changeset viewer.