- Timestamp:
- May 17, 2019, 4:56:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2532 r2538 567 567 >>> fromanydate_CFYmd('1976-02-17_08:32:27') 568 568 '1976-02-17' 569 >>> fromanydate_CFYmd('1976-02-17T08:32:27Z') 570 '1976-02-17' 569 571 """ 570 572 fname = 'fromanydate_CFYmd' … … 582 584 # Removing possible [datre]_[time] 583 585 if date.count('_') != 0: date = date.split('_')[0] 586 if date.count('T') != 0: date = date.split('T')[0] 584 587 585 588 ldate = date.split('-') … … 597 600 598 601 return newdate 602 603 print fromanydate_CFYmd('1976-02-17T08:32:27Z') 604 quit() 605 599 606 600 607 class CFtimeU_inf(object):
Note: See TracChangeset
for help on using the changeset viewer.