Two questions about dealing with sunset/sunrise in an app

In ST I used to subscribe to the location "sun(set|rise)" events to get notified about sunset or sunrise happening; and I could use location.currentValue("sun(set|rise)Time") to get the times and deal with them in the app's logic.
What is the equivalent in Hubitat? I've noticed the latter (location.currentValue) doesn't work.
Thanks.

You can subscribe to the same location events. Time is also available:

subscribe(location, "sunset", handler)

def mySunsetTime = location.sunset

Great, thanks!