英文:
Is there any package, API or etc. which can return boolean if an iCal Vevent is at the moment Active?
问题
以下是翻译好的内容:
我已经在网络和Stack Overflow上搜索了超过两天,但是我没有找到任何相关信息。
我将再次阐明问题。每个 *.iCal 文件都有 "vevents" 以及许多其他组件,如 "summary"、"datestart"。
我想要搜索一个 *.iCal 文件,查找是否有一个具有特定摘要的 "vevent",例如 "summary=testevent",在当前时间是否处于活动状态。但我希望使用一个库或者包来实现这个功能。
我所指的当前活动是指事件正在进行中。如果你看一下这个示例事件,它目前是活动的:
我提出这个问题的原因是因为在设置日历事件时可以应用许多规则。比如,每个第二个星期二,每个第五个月的第五天等等。
我不想听你如何编程,因为我已经尝试了两个多星期。它比看起来的要复杂。请看一下事件可能具有的所有特殊规则:
你是否知道是否有任何可以实现这一功能的包、库等?
英文:
So i’ve been searching the web & stackoverflow for this question for more than 2 days, but i wasn’t able to find anything.
I’ll clarify the question again. Each *.iCal file has “vevents” and many other components like “summary”, “datestart”.
I want to search an *.iCal file whether an “vevent” with an particular summary, for example, “summary=testevent” is at this current time active. BUT I want to do so with an library or package.
By currently active I mean like that the event is happening right now. If you look at this example event, it currently is active:
The reason I ask is because there are many rules you can apply when setting up an calendar event. Like, every second tuesday, every fifth month on the 5th and etc.
I don’t want to hear how you can program it, as I am trying to do so for over 2 weeks. It is more complicated than it looks. Have a look at all the special rules an event can have:
Is there any Package, library, etc. , you are aware of which can do so?
专注分享java语言的经验与见解,让所有开发者获益!
评论