Ignore:
Timestamp:
05/23/12 12:43:44 (12 years ago)
Author:
acosce
Message:

Bugfix on IGCM_date_DaysInPreviousPeriod

this bug appeared with commit 546 and doesn't affect create_ts in libIGCM_v1_* tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_date/libIGCM_date.ksh

    r589 r673  
    841841    IGCM_date_GetYearMonth ${1} year month 
    842842    year=$( IGCM_date_SupressZeros ${year} ) 
    843     if [ X${2} = Xend ] ; then 
     843    if [ X${3} = Xend ] ; then 
    844844      (( year = year - PeriodLengthInYears + 1)) 
    845845    fi 
     
    855855    IGCM_date_GetYearMonth ${1} year month 
    856856    year=$( IGCM_date_SupressZeros ${year} ) 
    857     if [ X${2} = Xend ] ; then 
     857    if [ X${3} = Xend ] ; then 
    858858      (( month = month - PeriodLengthInMonths + 1 )) 
    859859    fi       
Note: See TracChangeset for help on using the changeset viewer.