处理日历复发规则rrule.zip

上传者: 39840914 | 上传时间: 2022-08-23 21:10:08 | 文件大小: 119KB | 文件类型: ZIP
rrule 是一个处理日历日期复发规则的 JavaScript 库。rrule.js 支持在 iCalendar RFC 定义的复发规则,这是从优秀的 python-dateutil 库的 RRULE 模块的部分端口。最重要的是,它支持解析和序列化自然语言的复发规则。使用示例:// Create a rule: var rule = new RRule({     freq: RRule.WEEKLY,     interval: 5,     byweekday: [RRule.MO, RRule.FR],     dtstart: new Date(2012, 1, 1, 10, 30),     until: new Date(2012, 12, 31) }); // Get all occurrence dates (Date instances): rule.all(); ['Fri Feb 03 2012 10:30:00 GMT 0100 (CET)',  'Mon Mar 05 2012 10:30:00 GMT 0100 (CET)',  'Fri Mar 09 2012 10:30:00 GMT 0100 (CET)',  'Mon Apr 09 2012 10:30:00 GMT 0200 (CEST)',  /* … */] // Get a slice: rule.between(new Date(2012, 7, 1), new Date(2012, 8, 1)) ['Mon Aug 27 2012 10:30:00 GMT 0200 (CEST)',  'Fri Aug 31 2012 10:30:00 GMT 0200 (CEST)'] // Get an iCalendar RRULE string representation: // The output can be used with RRule.fromString(). rule.toString(); "FREQ=WEEKLY;DTSTART=20120201T093000Z;INTERVAL=5;UNTIL=20130130T230000Z;BYDAY=MO,FR" // Get a human-friendly text representation: // The output can be used with RRule.fromText(). rule.toText() "every 5 weeks on Monday, Friday until January 31, 2013"


标签:rrule

文件下载

资源详情

[{"title":"( 61 个子文件 119KB ) 处理日历复发规则rrule.zip","children":[{"title":"rrule-master","children":[{"title":".travis.yml <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"LICENCE <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"pull_request_template.md <span style='color:#111;'> 350B </span>","children":null,"spread":false},{"title":"issue_template.md <span style='color:#111;'> 558B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"optionstostring.test.ts <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"dateutil.test.ts <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"rruleset.test.ts <span style='color:#111;'> 19.36KB </span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"helpers.test.ts <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"mocha.opts <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"parseoptions.test.ts <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"nlp.test.ts <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"rrulestr.test.ts <span style='color:#111;'> 10.64KB </span>","children":null,"spread":false},{"title":"datewithzone.test.ts <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"utils.ts <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false}],"spread":false},{"title":"rrule.test.ts <span style='color:#111;'> 87.58KB </span>","children":null,"spread":false},{"title":"parsestring.test.ts <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"index.html <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"weekday.ts <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"helpers.ts <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"parsestring.ts <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"iterresult.ts <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"callbackiterresult.ts <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"rrule.ts <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"optionstostring.ts <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"rrulestr.ts <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"dateutil.ts <span style='color:#111;'> 5.18KB </span>","children":null,"spread":false},{"title":"iterset.ts <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"parseoptions.ts <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"nlp","children":[{"title":"i18n.ts <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"parsetext.ts <span style='color:#111;'> 9.91KB </span>","children":null,"spread":false},{"title":"totext.ts <span style='color:#111;'> 12.81KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false}],"spread":false},{"title":"datewithzone.ts <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"datetime.ts <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"masks.ts <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"iter","children":[{"title":"poslist.ts <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 5.44KB </span>","children":null,"spread":false}],"spread":false},{"title":"cache.ts <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"types.ts <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"iterinfo","children":[{"title":"yearinfo.ts <span style='color:#111;'> 4.16KB </span>","children":null,"spread":false},{"title":"easter.ts <span style='color:#111;'> 721B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 4.45KB </span>","children":null,"spread":false},{"title":"monthinfo.ts <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false}],"spread":false},{"title":"index.ts <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"rruleset.ts <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"tsconfig.test.json <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"codecov.yml <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":"webpack.config.js <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"index.html <span style='color:#111;'> 26.23KB </span>","children":null,"spread":false},{"title":"demo.css <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"demo.ts <span style='color:#111;'> 7.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 25.88KB </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 129.81KB </span>","children":null,"spread":false},{"title":"bower.json <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明