Write CSV file with uptimes