示例#1
0
def getModifyDate(mediaItem):
	metaData = mediaItem.get('metadata', {})
	ret = metaData.get("dateModified")
	if ret is not None:
		ret = _dateFromString(ret)
		
	return ret
示例#2
0
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