var theTime = now
logInfo("testing", theTime.toString)
var plusFiveMin = now.plusMinutes(5)
logInfo("testing", plusFiveMin.toString()
BackIn.postUpdate(plusFiveMin)
Hi @rlkoshak thanks for the reply - my question may have been worded unclearly - the script was to show what I got to only show the now time.
Thanks this got me going, I look at that link and my eyes start to go crosseyed and get very lost very quickly with all the information so thanks for dumbing it down to something I can understand. I did find something in the comments of that link which hepled me format the string as well so Ive included here for anyone in the same boat. Couldnt work out where to find a comprehensive list of pattern options - wanted AM or PM but “hh:mm aa” was all I could find which doesnt work but no biggie.
val formatter = java.time.format.DateTimeFormatter.ofPattern("hh:mm")
var theTime = now
var plusFiveMin = now.plusMinutes(5).format(formatter)
BackIn.postUpdate(plusFiveMin)