Changeset 1844 in lmdz_wrf
- Timestamp:
- Mar 22, 2018, 9:29:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1843 r1844 568 568 dateD = dateDT[0].split('/') 569 569 timeT = dateDT[1].split('-') 570 yr = int(dateD[0]) 571 mo = int(dateD[1]) 572 da = int(dateD[2]) 573 ho = int(timeT[0]) 574 mi = int(timeT[1]) 575 se = int(timeT[2]) 576 elif typeSi == 'Y-m-dTH:M:SZ': 577 dateDT = StringDT.split('T') 578 dateD = dateDT[0].split('-') 579 timeT = dateDT[1].replace('Z','').split(':') 570 580 yr = int(dateD[0]) 571 581 mo = int(dateD[1])
Note: See TracChangeset
for help on using the changeset viewer.