Ignore:
Timestamp:
01/22/07 08:55:49 (17 years ago)
Author:
smasson
Message:

improve the use of high frequency calendar

File:
1 edited

Legend:

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

    r157 r205  
    3030  compile_opt idl2, strictarrsubs 
    3131; 
    32  
    33   caldat, jday, month, day, year 
    34  
     32  caldat, jday, month, day, year, hour, min, sec 
     33; 
    3534  res = (10000L*year + 100L*month + day)*(year GE 0) $ 
    3635        +( 10000L*year - 100L*month - day)*(year LT 0) 
     36; 
     37  IF total([hour NE 12, min NE 0, sec NE 0]) EQ 0 THEN return, long(res) $ 
     38  ELSE return, double(res) + (hour / 24.0d0) + (min/1440.0d0) + (sec / 86400.0d0) 
    3739 
    38   return, long(res) 
    3940end 
Note: See TracChangeset for help on using the changeset viewer.