IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10233


Ignore:
Timestamp:
Nov 28, 2006, 12:18:31 PM (20 years ago)
Author:
jhoblitt
Message:

change parseTime() to use psTimeFromISO() instead of psTimeStrptime() directly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r10101 r10233  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.124 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-11-20 17:50:08 $
     12*  @version $Revision: 1.125 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-11-28 22:18:31 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    342342    }
    343343
    344     // like psTimeFromISO() but the ending Z is required
    345     psTime *out = psTimeStrptime(inString, "%Y-%m-%dT%H:%M:%SZ");
     344    psTime *out = psTimeFromISO(inString, tt);
    346345    if (!out) {
    347346        *status = 1;
    348347        return NULL;
    349348    }
    350 
    351     // psTimeStrptime() leaves the type at the default
    352     out->type = tt;
    353349
    354350    *status = 0;
Note: See TracChangeset for help on using the changeset viewer.