IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2004, 10:56:40 AM (22 years ago)
Author:
harman
Message:

Changed if statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psTime.c

    r1268 r1270  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-07-22 20:54:32 $
     14 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-07-22 20:56:40 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    278278    if(year < 1900) {
    279279        psError(__func__,"Years less than 1900 not allowed. Value: %d", year);
     280        return outTime;
    280281    }
    281282
     
    283284    if(month<1 || month>12) {
    284285        psError(__func__,"Month must have a value from 0 to 11. Value: %d", month);
     286        return outTime;
    285287    }
    286288
     
    288290    if(day<1 || day>31) {
    289291        psError(__func__,"Day must have a value from 1 to 31. Value: %d", day);
     292        return outTime;
    290293    }
    291294
     
    293296    if(hour<0 || hour>23) {
    294297        psError(__func__,"Hour must have a value from 0 to 23. Value: %d", hour);
     298        return outTime;
    295299    }
    296300
     
    298302    if(minute<0 || minute>59) {
    299303        psError(__func__,"Minute must have a value from 0 to 59. Value: %d", minute);
     304        return outTime;
    300305    }
    301306
     
    303308    if(second<0 || second>59) {
    304309        psError(__func__,"Second must have a value from 0 to 59. Value: %d", second);
     310        return outTime;
    305311    }
    306312
     
    308314    if(millisecond<0 || millisecond>1000) {
    309315        psError(__func__,"Millisecond must have a value from 0 to 999. Value: %d", millisecond);
     316        return outTime;
    310317    }
    311318
Note: See TracChangeset for help on using the changeset viewer.