Changeset 30814
- Timestamp:
- Mar 6, 2011, 2:36:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psLib/src/astro/psTime.c
r22710 r30814 1498 1498 // accepts a range of human readable times: 1499 1499 // ISO (YYYY-MM-MMTHH:MM:SS[.sss][Z]) 1500 // YYYY/MM/DDTHH:MM:DD 1501 // YYYY-MM-DD,HH:MM:DD 1500 1502 // YYYY/MM/DD,HH:MM:DD 1503 // YYYY-MM-DD@HH:MM:DD 1504 // YYYY/MM/DD@HH:MM:DD 1501 1505 psTime* psTimeFromString(const char *input, 1502 1506 psTimeType type) … … 1517 1521 psErrorClear (); 1518 1522 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 1519 1539 // Convert YYYY/MM/DD,hh:mm:ss.sss[Z] in string form to tm time 1520 1540 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"); 1521 1549 if (outTime) { 1522 1550 outTime->type = type;
Note:
See TracChangeset
for help on using the changeset viewer.
