Changeset 1844 in lmdz_wrf


Ignore:
Timestamp:
Mar 22, 2018, 9:29:07 PM (7 years ago)
Author:
lfita
Message:

Fixing changes on datetimeStr_conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1843 r1844  
    568568        dateD = dateDT[0].split('/')
    569569        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(':')
    570580        yr = int(dateD[0])
    571581        mo = int(dateD[1])
Note: See TracChangeset for help on using the changeset viewer.