def main(n):
    start = (((- 86400) * 365) * 20)
    end = (86400 * 365)
    filename = (('testdata-' + str(n)) + '.txt')
    with open(filename, 'w') as fp:
        now = datetime.datetime.now()
        for i in range(n):
            d = datetime.timedelta(seconds=random.randint(start, end))
            nd = (now + d)
            fp.write((nd.strftime('%d/%m/%Y %H:%M:%S') + '\n'))
    print('generate finish {}\n'.format(filename))
def main(n):
    start = (((- 86400) * 365) * 20)
    end = (86400 * 365)
    filename = (('testdata-' + str(n)) + '.txt')
    with open(filename, 'w') as fp:
        now = datetime.datetime.now()
        for i in range(n):
            d = datetime.timedelta(seconds=random.randint(start, end))
            nd = (now + d)
            fp.write((nd.strftime('%d/%m/%Y %H:%M:%S') + '\n'))
    print('generate finish {}\n'.format(filename))