IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2006, 2:17:44 PM (20 years ago)
Author:
drobbin
Message:

Updated psTimeFromISO to use 2nd argument, psTimeType and output the desired type of time.

File:
1 edited

Legend:

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

    r6268 r6269  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-01-31 23:24:21 $
     12 *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-02-01 00:17:44 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14981498    // Check for NULL string
    14991499    PS_ASSERT_PTR_NON_NULL(input,NULL);
     1500    PS_ASSERT_INT_WITHIN_RANGE(type, PS_TIME_TAI, PS_TIME_TT, NULL);
    15001501
    15011502    // Convert YYYY-MM-DDThh:mm:ss.sss in string form to tm time
     
    15211522    outTime = p_psTimeFromTM(&tmTime);
    15221523    outTime->nsec = millisecond * 1000000;
    1523     outTime->type = type;
     1524    //    outTime->type = type;
     1525    if (type != PS_TIME_TAI) {
     1526        outTime = psTimeConvert(outTime, type);
     1527    }
    15241528
    15251529    return outTime;
Note: See TracChangeset for help on using the changeset viewer.