How to get Parts angle of its own Rotation along its (local) Z axis?

Lets say we have this Part:
grafik

Where the Red cross marks the Front of the part and the blue one the Top.

In this Position&Rotation i would want to get the Number 0.
But in this state:
grafik
i would like to get the number 45 returned.
And now my problem:
grafik
grafik
I would also still like to get the number 45 returned no matter how much this Part is pitched up and down. I just want to get Rotation on its Local Z axis.
Another Example:
grafik
This should return 90.
I cant figure it out how to get those when the part is pitched.
Can someone pls help me…

Thanks!

You can only get this info by keeping track of its initial rotation with a quaternion, since there are multiple combinations of rotations that could give the same result.