Ignore:
Timestamp:
04/17/14 10:49:43 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules; typo; dupe empty lines; trailing blanks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Calendar/jul2date.pro

    r371 r495  
    1414; Set this keyword equal to a named variable that will receive a 
    1515; longword integer or longword integer array representing the number of 
    16 ; the desired month (1 = January, ..., 12 = December).  
     16; the desired month (1 = January, ..., 12 = December). 
    1717; 
    1818; @keyword DAY 
    1919; Set this keyword equal to a named variable that will receive a 
    2020; longword integer or longword integer array representing the number of 
    21 ; the day of the month (1-31).   
     21; the day of the month (1-31). 
    2222; 
    2323; @keyword YEAR 
    2424; Set this keyword equal to a named variable that will receive a 
    2525; longword integer or longword integer array representing the number of 
    26 ; the desired year (e.g., 1994).   
     26; the desired year (e.g., 1994). 
    2727; 
    2828; @keyword HOUR 
    2929; Set this keyword equal to a named variable that will receive a 
    3030; longword integer or longword integer array representing the number of 
    31 ; the hour of the day (0-23).   
    32 ;  
     31; the hour of the day (0-23). 
     32; 
    3333; @keyword MINUTE 
    3434; Set this keyword equal to a named variable that will receive a 
    3535; longword integer or longword integer array representing the number of 
    36 ; the minute of the hour (0-59).   
    37 ;   
     36; the minute of the hour (0-59). 
     37; 
    3838; @keyword SECOND 
    3939; Set this keyword equal to a named variable that will receive a 
     
    4545; the date: longword integer with yyyymmdd format or double-precision 
    4646; floating-point with yyyymmdd.xx where xx is the fraction of the day 
    47 ; (xx=0 at 0am and 5 at 12am)  
     47; (xx=0 at 0am and 5 at 12am) 
    4848; 
    4949; @restrictions 
    5050; Input param must be longword integer or double-precision floating-point 
    51 ;  
     51; 
    5252; @examples 
    5353; 
     
    7676  sztype = size(jday, /type) 
    7777  IF sztype NE 3 AND sztype NE 5 AND sztype LT 13 THEN BEGIN 
    78     dummy = report('Beware of input type, julian date must be long or double') 
     78    dummy = report('Beware of input type, Julian date must be long or double') 
    7979    stop 
    8080  ENDIF 
     
    8282  caldat, jday, month, day, year, hour, minute, second 
    8383; 
    84   res = (10000L*year + 100L*month + day)*(year GE 0) $ 
    85         +( 10000L*year - 100L*month - day)*(year LT 0) 
     84  res =  (10000L * year + 100L * month + day) * (year GE 0) $ 
     85       + (10000L * year - 100L * month - day) * (year LT 0) 
    8686; 
    8787  IF sztype NE 5 THEN return, long(res) $ 
    88   ELSE return, double(res) + (hour / 24.0d0) + (minute/1440.0d0) + (second / 86400.0d0) 
     88  ELSE return, double(res) + (hour / 24.0d0) + (minute / 1440.0d0) + (second / 86400.0d0) 
    8989 
    9090end 
Note: See TracChangeset for help on using the changeset viewer.