Ignore:
Timestamp:
31/07/12 15:35:45 (8 years ago)
Author:
mnagni
Message:

Implemented adapters for TM_Instant, TM_Period and partially for CEDA_Observation

Added a Sphinx documentation folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/commons.py

    r8460 r8477  
    230230        @param timestring: a time string formatted as '%Y-%m-%dT%H:%M:%SZ' 
    231231    ''' 
    232     return datetime.datetime.strptime(timestring, datetime_format) 
     232    try: 
     233        return datetime.datetime.strptime(timestring, datetime_format) 
     234    except: 
     235        pass 
    233236 
    234237def _getDocument(source): 
     
    564567        @param datetime: a datetime.datetime instance         
    565568    ''' 
     569    if datetime is None: 
     570        return 
    566571    dateTime = DateTime() 
    567572    dateTime.century = (datetime.year / 100) + 1 
Note: See TracChangeset for help on using the changeset viewer.