Comparison of time sensors

Gentlemen!
Please tell me: there are two time sensors. One time sensor is static, and the second is the sunrise attribute time. So I need to compare these two sensors for a sign greater than or equal to. Who can tell you how to correctly create a template for the reconciliation of time sensors.

Is it a datetime object and is it timezone aware?

Did you get anywhere with this?
I’m looking to do something similar and currently struggling.