How to 'optimize' an opening_hours string
The readme mentions https://framagit.org/PanierAvide/YoHours#integration Now I'm wondering how one would use the YoHours code to actually optimize openinghours.
For ex, I've seen strings like this for example: Mo,We,Th,Fr,Sa,Su 08:00-24:00 If I put that in Yohours, then change something random, literally doesn't matter what. But let's say I add a slot on Tuesday; it becomes: 08:00-24:00; Tu 06:45-07:00 And then I remove it again (so undoing my previous change), it would become: 08:00-24:00; Tu off
I'm looking to make something where I can input a value and the 'optimized' version comes out. And I'm having a hard time figuring out what code from this project to use to make that happen.
Edited by Thibault Molleman