48    std::filesystem::create_directory( basedir );
 
   50    std::vector<std::string> devs( { 
"dev1", 
"dev2", 
"dev3" } );
 
   52    std::vector<std::vector<tmpt>> ftimes( {  { { 2024, 11, 19, 0, 0, 0, 0 },
 
   53                                                         { 2024, 11, 19, 0, 0, 30, 0 },
 
   54                                                         { 2024, 11, 19, 2, 55, 26, 4000 },
 
   55                                                         { 2024, 11, 19, 5, 23, 0, 0 },
 
   56                                                         { 2024, 11, 21, 22, 0, 0, 0 },
 
   57                                                         { 2024, 11, 21, 23, 59, 59, 999999999 },
 
   58                                                         { 2024, 11, 23, 2, 30, 2, 2000 },
 
   59                                                         { 2024, 11, 23, 4, 45, 10, 12 } },
 
   61                                             { { 2024, 11, 19, 0, 0, 0, 0 },
 
   62                                               { 2024, 11, 19, 0, 0, 30, 0 },
 
   63                                               { 2024, 11, 19, 2, 55, 26, 4000 },
 
   64                                               { 2024, 11, 19, 5, 23, 0, 0 },
 
   65                                               { 2024, 11, 21, 22, 0, 0, 0 },
 
   66                                               { 2024, 11, 21, 23, 59, 59, 999999999 },
 
   67                                               { 2024, 11, 23, 2, 30, 2, 2000 },
 
   68                                               { 2024, 11, 23, 4, 45, 10, 12 } },
 
   70                                             { { 2024, 11, 19, 0, 0, 0, 0 },
 
   71                                               { 2024, 11, 19, 0, 0, 30, 0 },
 
   72                                               { 2024, 11, 19, 2, 55, 26, 4000 },
 
   73                                               { 2024, 11, 19, 5, 23, 0, 0 },
 
   74                                               { 2024, 11, 21, 22, 0, 0, 0 },
 
   75                                               { 2024, 11, 21, 23, 59, 59, 999999999 },
 
   76                                               { 2024, 11, 23, 2, 30, 2, 2000 },
 
   77                                               { 2024, 11, 23, 4, 45, 10, 12 } } } );
 
   79    for( 
size_t d = 0; d < devs.size(); ++d )
 
   81        for( 
size_t f = 0; f < ftimes[d].size(); ++f )
 
   84            uttime.tm_year = ftimes[d][f].year - 1900;
 
   85            uttime.tm_mon  = ftimes[d][f].month - 1;
 
   86            uttime.tm_mday = ftimes[d][f].day;
 
   87            uttime.tm_hour = ftimes[d][f].hour;
 
   88            uttime.tm_min  = ftimes[d][f].minute;
 
   89            uttime.tm_sec  = ftimes[d][f].second;
 
   91            time_t secs = timegm( &uttime );
 
   93            std::string fileName, relPath;
 
   97            std::filesystem::create_directories( basedir + 
'/' + relPath );
 
  100            fout.open( basedir + 
'/' + relPath + 
'/' + fileName );