IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30814


Ignore:
Timestamp:
Mar 6, 2011, 2:36:26 PM (15 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psLib/src/astro/psTime.c

    r22710 r30814  
    14981498// accepts a range of human readable times:
    14991499// ISO (YYYY-MM-MMTHH:MM:SS[.sss][Z])
     1500// YYYY/MM/DDTHH:MM:DD
     1501// YYYY-MM-DD,HH:MM:DD
    15001502// YYYY/MM/DD,HH:MM:DD
     1503// YYYY-MM-DD@HH:MM:DD
     1504// YYYY/MM/DD@HH:MM:DD
    15011505psTime* psTimeFromString(const char *input,
    15021506                      psTimeType type)
     
    15171521    psErrorClear ();
    15181522
     1523    // Convert YYYY/MM/DDThh:mm:ss.sss[Z] in string form to tm time
     1524    outTime = psTimeStrptime(input, "%Y/%m/%dT%H:%M:%S");
     1525    if (outTime) {
     1526      outTime->type = type;
     1527      return outTime;
     1528    }
     1529    psErrorClear ();
     1530
     1531    // Convert YYYY-MM-DD,hh:mm:ss.sss[Z] in string form to tm time
     1532    outTime = psTimeStrptime(input, "%Y-%m-%d,%H:%M:%S");
     1533    if (outTime) {
     1534      outTime->type = type;
     1535      return outTime;
     1536    }
     1537    psErrorClear ();
     1538
    15191539    // Convert YYYY/MM/DD,hh:mm:ss.sss[Z] in string form to tm time
    15201540    outTime = psTimeStrptime(input, "%Y/%m/%d,%H:%M:%S");
     1541    if (outTime) {
     1542      outTime->type = type;
     1543      return outTime;
     1544    }
     1545    psErrorClear ();
     1546
     1547    // Convert YYYY-MM-DD@hh:mm:ss.sss[Z] in string form to tm time
     1548    outTime = psTimeStrptime(input, "%Y-%m-%d@%H:%M:%S");
    15211549    if (outTime) {
    15221550      outTime->type = type;
Note: See TracChangeset for help on using the changeset viewer.