Actual Time minus Minutes

Hey, i have an CPU_Uptime (Number) item, which stores the value as following “123.4”.
Now i want an item, which subtracts the minutes from the actual time, to get the time the server initally started. Is this possible somehow?
I thought about something like now.minusMinutes(CPU_Uptime.state)

It makes a difference on which programming language you are using for rules. I’ll assume Rules DSL.

The relevant reference docs are ZonedDateTime (Java SE 11 & JDK 11 ).

You’ll see that there is a minusMinutes but it requires a long meaning you’ll have to do some math. You’ll either need to round to the nearest minute, or convert the tenths of a minute to seconds.