def genMeshDynamicTimeInterval_Mobmap(fileName, meshFileName, startTimestamp, endTimestamp):
    Timestamps = getTimestamps(fileName)
    startIndex = Timestamps.index(startTimestamp)
    endIndex = Timestamps.index(endTimestamp)
    Interval = [Timestamps[t] for t in range(startIndex, endIndex)]

    def strHH(timestamp):
        return (timestamp[11:13] + timestamp[14:16])
    wf = open((((((meshFileName[:(- 4)] + '_') + strHH(startTimestamp)) + '_') + strHH(endTimestamp)) + '.csv'), 'w')
    with open(meshFileName, 'r') as rf:
        for line in csv.reader(rf):
            if ((line[0] == '@dynamic-mesh') or '"@use-mesh-code'):
                wf.write((line + '\n'))
            if (line[0] in Interval):
                wf.write((','.join(line) + '\n'))
            else:
                pass
    wf.close()
def genMeshDynamicTimeInterval_Mobmap(fileName, meshFileName, startTimestamp, endTimestamp):
    Timestamps = getTimestamps(fileName)
    startIndex = Timestamps.index(startTimestamp)
    endIndex = Timestamps.index(endTimestamp)
    Interval = [Timestamps[t] for t in range(startIndex, endIndex)]

    def strHH(timestamp):
        return (timestamp[11:13] + timestamp[14:16])
    wf = open((((((meshFileName[:(- 4)] + '_') + strHH(startTimestamp)) + '_') + strHH(endTimestamp)) + '.csv'), 'w')
    with open(meshFileName, 'r') as rf:
        for line in csv.reader(rf):
            if ((line[0] == '@dynamic-mesh') or '"@use-mesh-code'):
                wf.write((line + '\n'))
            if (line[0] in Interval):
                wf.write((','.join(line) + '\n'))
            else:
                pass
    wf.close()