'Try to set the last-modified time of the given file.'

def try_utime(self, filename, last_modified_hdr):

    if (last_modified_hdr is None):
        return
    if (not os.path.isfile(encodeFilename(filename))):
        return
    timestr = last_modified_hdr
    if (timestr is None):
        return
    filetime = timeconvert(timestr)
    if (filetime is None):
        return filetime
    if (filetime == 0):
        return
    try:
        os.utime(filename, (time.time(), filetime))
    except Exception:
        pass
    return filetime
