If you use an UV stabilized Epoxy then you can probably expect up to 10 -15 years without it cracking up , peeling and letting moisture through to the wood..
This depends very much on the quality of the Epoxy .. adding a black pigment makes it less strong, since it will absorb more energy/heat /UV -- And also VERY much on how you prepare the surfaces, and the quality of your work!!!
I repaired an outside window-sill with West Systems close to 15 years ago. this was using the West Systems Coating hardener with UV stabilizer and "high density filler" but without any pigment-
This is still in very good condition, even though it is on the south facing facade of my garage, in direct sunlight almost all day (when the sun shines that is...

)
"Sapere Aude"... Dare to KNOW!
The written word is the only truly efficient vehicle for transmitting a complex concept from mind to mind...
103% of all people do not understand statistics...
Do not adjust our mind, theres a fault in reality :-)