History from persistence, date?

Hello folks,
please can someone kick my brain a bit?

How do I retrieve a date of the value?
I do have value from this

val max = (Weather_Temperature.maximumSince(now.withYear(2015)).state as Number).floatValue

Let’s say it returns 34, but i would like to know the date as well.

persistence is stored in influxDB

side question: is maximumSince always requiring a date? or it would work as well without - eg. all the time?

Thanks

so … nobody? or it’s not possible? :slight_smile:

so for myself and future reference

val maxY = (Weather_Temperature.maximumSince(now.withMonthOfYear(1).withDayOfMonth(1)))

logInfo("TEST",tesT.state.toString)
logInfo("TEST",tesT.getTimestamp.toString)

2020-12-08 12:33:40.695 [INFO ] [.eclipse.smarthome.model.script.TEST] - 34.0
2020-12-08 12:33:40.696 [INFO ] [.eclipse.smarthome.model.script.TEST] - Fri Aug 21 17:00:00 CEST 2020