rrule

Parse RRULE to readable text?

时光总嘲笑我的痴心妄想 提交于 2019-12-24 04:20:22
问题 I am looking for a library (php) or some pseudocode to parse Ical RRULEs to readable text(like for example google calendar) RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=1FR,3FR,5FR -> Monthly on Friday of weeks 1, 3, 5 of the month 回答1: I was wondering the same thing and I struggled to find one, but I found one which is still in development, and you can find it here: https://github.com/simshaun/recurr/tree/v0.2-dev I was able to get it working with this code: $timezone = 'America/New_York'; $startDate

events with rrule plugin is not updating after drag/drop on change view grid fullcalendar v4

為{幸葍}努か 提交于 2019-12-23 12:03:41
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. Mark Salvania is looking for an answer from a reputable source : “Need the working coding to in jsfiddle/codepen.” I am currently working on Fullcalendar v4 with rrule plugin I have this code var calendarEl = document.getElementById('calendardemo'); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: ['interaction', 'dayGrid', 'timeGrid', 'momentTimezone', 'rrule', 'list'], header: {

How to generate a human-readable string that represents a rrule object?

自闭症网瘾萝莉.ら 提交于 2019-12-22 08:15:10
问题 My app allows users define scheduling on objects, and they is stored as rrule. I need to list those objects and show something like "Daily, 4:30 pm". There is something available that "pretty formats" an rrule instance? 回答1: You simply have to provide a __str__ method and it will be called whenever something needs to render your object as a string. For example, consider the following class: class rrule: def __init__ (self): self.data = "" def schedule (self, str): self.data = str def __str__

How to produce recurrence rschedule durations with timeshifts

独自空忆成欢 提交于 2019-12-11 06:16:31
问题 I am using rSchedule to produce working hour intervals.But timezone is ignored. How can I achieve it? The input is working hour intervals in a day, with timezone as below. const input = { workingHours:[{start:9, end:12}, {start:13, end:18}], timeZone:'Europe/Berlin' }; With the below code, I am expecting to produce intervals with respect to day light shiftings in a year. However, the produced output ignores the timeZone I provided. import { Schedule } from "@rschedule/core/generators"; import

RRULE parsing in Postgresql

风格不统一 提交于 2019-12-09 18:47:58
问题 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

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

前提是你 提交于 2019-12-09 10:14:06
问题 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

dateutils rrule returns dates that 2 months apart

你说的曾经没有我的故事 提交于 2019-12-07 23:43:01
问题 I am new to Python and also dateutil module. I am passing the following arguments: disclosure_start_date = resultsDict['fd_disclosure_start_date'] disclosure_end_date = datetime.datetime.now() disclosure_dates = [dt for dt in rrule(MONTHLY, dtstart=disclosure_start_date, until=disclosure_end_date)] Here disclosure_start_date = 2012-10-31 00:00:00 which converted to datetime is datetime.datetime(2012, 10, 31, 0, 0) End date is as of now. When I use: disclosure_dates = [dt for dt in rrule

Google Calendar API, RRULE and EXDATE

人盡茶涼 提交于 2019-12-07 01:52:40
问题 I'm trying to export some events to Google Calendar with the API, specifically the python library that wraps it. These events have recurrence, which is defined to Google Calendar with an RRULE string, and I'm trying to exclude certain dates with EXDATE strings. Here's what I'm sending: { "summary": "Test Event", "description": "Event", "location": "Home", "start": { "timeZone": "America/New_York", "dateTime": "2014-09-05T10:30:00" }, "end": { "timeZone": "America/New_York", "dateTime": "2014

dateutils rrule returns dates that 2 months apart

独自空忆成欢 提交于 2019-12-06 05:50:21
I am new to Python and also dateutil module. I am passing the following arguments: disclosure_start_date = resultsDict['fd_disclosure_start_date'] disclosure_end_date = datetime.datetime.now() disclosure_dates = [dt for dt in rrule(MONTHLY, dtstart=disclosure_start_date, until=disclosure_end_date)] Here disclosure_start_date = 2012-10-31 00:00:00 which converted to datetime is datetime.datetime(2012, 10, 31, 0, 0) End date is as of now. When I use: disclosure_dates = [dt for dt in rrule(MONTHLY, dtstart=disclosure_start_date, until=disclosure_end_date)] I get the dates for every other month or

Google Calendar API, RRULE and EXDATE

Deadly 提交于 2019-12-05 07:55:20
I'm trying to export some events to Google Calendar with the API, specifically the python library that wraps it. These events have recurrence, which is defined to Google Calendar with an RRULE string, and I'm trying to exclude certain dates with EXDATE strings. Here's what I'm sending: { "summary": "Test Event", "description": "Event", "location": "Home", "start": { "timeZone": "America/New_York", "dateTime": "2014-09-05T10:30:00" }, "end": { "timeZone": "America/New_York", "dateTime": "2014-09-05T11:35:00" }, "recurrence": [ "RRULE:FREQ=WEEKLY;WKST=SU;BYDAY=FR;UNTIL=20141203T173500Z", "EXDATE