def getModifyDate(mediaItem): metaData = mediaItem.get('metadata', {}) ret = metaData.get("dateModified") if ret is not None: ret = _dateFromString(ret) return ret
def getReleaseDate(mediaItem): metaData = mediaItem.get('metadata', {}) ret = metaData.get("releaseDate") if ret is not None: ret = _dateFromString(ret) return ret
def convert_timestamp(obj): time_stamp = None if plistlib._dateParser.match(obj): time_stamp = plistlib._dateFromString(obj) return time_stamp