rrule

RRULE parsing in Postgresql

﹥>﹥吖頭↗ 提交于 2019-12-04 12:42:46
The goal: to generate a list of timestamps, each representing an event occurrance, from an RRULE string (i.e. FREQ=WEEKLY;INTERVAL=2;COUNT=8;WKST=SU;BYDAY=TU,TH ) and a starting timestamp. Since these times will be changed at the whim of a user, postgresql is desired for (1) it's quality of strict business logic and (2) triggers (auto-update rows when a value changes) Alternative Solution: I ended up using plpythonu (python language for postgresql). The dateutil library has a great rrule parser. mydatabase=# CREATE FUNCTION parse_occurrences(rule text, start timestamp) RETURNS timestamp[] AS

Create a repeating event with reminder until specific day without Intent in Android?

不问归期 提交于 2019-12-03 12:54:31
I have an android app that downloads with a service some drugs info. For example (fludex white round 2 24-02-2012),means a drug named fludex ,white and round,must be given 2 times per day from today untill 24-01-2012. Now i want after drug info downloading , to add repeated event with drug info to the calendar silently/programmatically(without user interaction). So that from today untill 24-01-2012 every 10 am and 10pm to have a reminder 10 minutes before to take his drug. My app will be for android 2-4. How can i do that,i'm confused from my searching so far. Second question:How can i delete

How to parse an iCal RRULE in Java

China☆狼群 提交于 2019-12-01 08:54:30
I have the following iCal recurrence rule examples: "RRULE:FREQ=YEARLY;INTERVAL=2" "RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,WE,TH" I need a Java library to parse the RRULE patterns to handle in an object. Are there any good Java libraries? ical library does not build correctly; google ical implementation is not supported for ages; maven repository can propose a lot of implementations, but I did not got any actual one. You can use lib-recur It is still supported and handle RFC 5545 and RFC 2445. RecurrenceRule rule = new RecurrenceRule("FREQ=YEARLY;BYMONTHDAY=23;BYMONTH=5"); DateTime start = new

How to parse an iCal RRULE in Java

♀尐吖头ヾ 提交于 2019-12-01 05:53:32
问题 I have the following iCal recurrence rule examples: "RRULE:FREQ=YEARLY;INTERVAL=2" "RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,WE,TH" I need a Java library to parse the RRULE patterns to handle in an object. Are there any good Java libraries? ical library does not build correctly; google ical implementation is not supported for ages; maven repository can propose a lot of implementations, but I did not got any actual one. 回答1: You can use lib-recur It is still supported and handle RFC 5545 and RFC

Python dateutils print recurrence rule according to iCalendar format (see RFC 5545)

佐手、 提交于 2019-11-29 04:08:31
I am trying to print a recurrence rule as a string specified by iCalendar format (see RFC 5545 ). Im using python dateutils, in particular dateutil.rrule to create the recurrence rule and I want to print this as a string like: "RRULE:FREQ=DAILY;COUNT=5" Can anyone tell me if there is a method to achieve this? I think I'm using the labix dateutils btw. Many thanks! There is no method or function in the python-dateutil package to do this. See this bug for a patch that may help: https://bugs.launchpad.net/dateutil/+bug/943512 . Although this is written four years after the question was asked,

Python dateutils print recurrence rule according to iCalendar format (see RFC 5545)

浪子不回头ぞ 提交于 2019-11-27 18:06:23
问题 I am trying to print a recurrence rule as a string specified by iCalendar format (see RFC 5545). Im using python dateutils, in particular dateutil.rrule to create the recurrence rule and I want to print this as a string like: "RRULE:FREQ=DAILY;COUNT=5" Can anyone tell me if there is a method to achieve this? I think I'm using the labix dateutils btw. Many thanks! 回答1: There is no method or function in the python-dateutil package to do this. See this bug for a patch that may help: https://bugs