def ymdhms2date(ymd, hms):
    '\n    ymd = 20180101\n    hms = 04:04:04\n    '
    ymdhms = (ymd + hms)
    return datetime.strptime(ymdhms, '%Y%m%d%H:%M:%S')
ymd = 20180101
hms = 04:04:04
def ymdhms2date(ymd, hms):
    '\n    ymd = 20180101\n    hms = 04:04:04\n    '
    ymdhms = (ymd + hms)
    return datetime.strptime(ymdhms, '%Y%m%d%H:%M:%S')