I have a code that needs to be done based on a schedule: for example. during working hours I do X, after hours Y. The schedule will be determined by our client, so I need a notation that people can write and analyze according to my program. I am thinking of something like:
12/25:0730-1730 Do Y [Mo-Fr]:0730-1730 Do X [Mo-Tu]:1730-0730 Do Y Fr:1730-Mo:0730 Do Y
There will definitely be a weekly variation. Annual variation (holidays) seems likely. I would like the notation to be effective and flexible.
I also need Java code that will analyze time ranges and tell me which range the specified time is indicated in.
I searched the Internet and found nothing. The closest thing to it is CRON, which is not exactly what I need.
Does anyone know about the existing definition and implementation of notation?
Thanks,
source share