【文件属性】:
文件名称:icalendar-recurrence:iCalendar 的简单重复扩展
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-30 01:13:24
Ruby
iCalendar 重复
将事件重复添加到 。 这在您想解析 ICS 并生成一系列事件发生的情况下很有帮助。
安装
注意:适用于 2.0.0beta.1(或更新的)icalendar gem。 如果您使用的是 icalendar <=1.5.4,请在切换之前查看。
gem "icalendar-recurrence"
并从您的 shell 运行bundle install 。
用法
显示日期之间事件的发生次数
require 'date' # for parse method
require 'icalendar/recurrence'
calendars = Icalendar . parse ( File . read ( path_to_ics ) ) # parse an ICS file
event = Array ( calendars ) . first . eve
【文件预览】:
icalendar-recurrence-master
----.travis.yml(130B)
----Guardfile(187B)
----Rakefile(123B)
----Gemfile(39B)
----.rspec(26B)
----spec()
--------support()
--------lib()
--------spec_helper.rb(329B)
----.gitignore(178B)
----CHANGELOG.md(516B)
----lib()
--------icalendar-recurrence.rb(41B)
--------icalendar()
----README.md(3KB)
----icalendar-recurrence.gemspec(1KB)
----LICENSE.txt(1KB)