Direct Sun Analysis with more restrict

sometimes there is more restricts for the valid direct sun hours,
case 1: the segment less than 20 mins is invalid for the result
case 2: continued sun hours segments should less than 3
case 3: the longest segment should bigger than 1 hour

the component is right now not for such situation, any idea to modify the results for this purpose?

I’m trying to find a method for a test point here Sublists with same values - #7 by Adam_M - Grasshopper - McNeel Forum

direct sun (75.9 KB)
this is WIP file with Sunpath, still looking for solution for mesh analysis

OK, there is also special rules in Germany and EU with code DIN 5034-1 and DIN EN 17037, how can I modify the results according to those rules?