RRuleJS-Swift 0.0.3

RRuleJS-Swift 0.0.3

Irfan Bashir 维护。



RRuleJS-Swift

围绕 RRule 的 JavaScript 的包装器。

安装

Cocoapods

RRulesJS-Swift 通过 CocoaPods 可用。要安装它,只需将以下行添加到您的 Podfile 中:

pod 'RRulesJS-Swift'

快速入门

RRuleJS

let rruleString = "FREQ=WEEKLY;INTERVAL=1;WKST=MO;DTSTART=20190112T150000Z;DTEND=20120112T150000Z;BYDAY=MO,TU,WE,TH,FR"
if let rule = RRuleJS(rruleString: rruleString) {
  let _ = rule.allOccurrences()
  // first occurrence from the date specified
  let _ = rule.after(new Date(), include: true)
  // if the time has passed with-in the day, if include=true it would still return the day, otherwise it wouldn't
}

贡献

这里还有很多工作要做!我希望看到您也参与进来。期待 PRs 存在。

作者

有关更多详细信息,请参阅许可证

相关项目