import time


def genBackupTimestampFilename(filebase, fileext):
    """
    Given a filename of the pattern base.ext, generate a backup filename
    base-YYYYmmdd-HHMMSS.ext
    """
    tstamp = time.strftime('%Y%m%d-%H%M%S')
    tsfile = "%s-%s.%s" %(filebase, tstamp, fileext)
    return tsfile