You can do this with .items and .things files In the same way. This was a stripped down example to show the basic idea, the date could be included as well (My time wrapper has more channels than I poster to keep it simple).
But as we are talking OH3 yaml-definitions did make sense. And it’s easy to copy&paste them into the code section of the things.
You may read this thread to get a textual definition in OH2.5 style.