Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Balaji Prasad
    I have installed rrule using bower
    I'm using angularjs 1.4.x version
    How do I inject rrule module?
    When I directly start using the code, it does not work
    Alex Perry
    HI, is anyone there?
    David Golightly
    @Pezza192_twitter I check this occasionally, do you have any questions?
    Please excuse the naive question, but how may I test out some code with rrule.js from jsfiddle.net?
    apparently neither the js nor typescript boilerplates is able to fetch the resources at "rrule/dist/es5/rrule.min.js"
    David Golightly
    @Nycticorax can you confirm you can download the resource from https://jakubroztocil.github.io/rrule/dist/es5/rrule.min.js ?
    @davidgoli Yes is can confirm. If I link a jsfiddle to that that URL and try something like
    import { RRule, RRuleSet, rrulestr } from 'rrule'
    // Create a rule:
    const rule = new RRule({
    freq: RRule.WEEKLY,
    interval: 5,
    byweekday: [RRule.MO, RRule.FR],
    dtstart: new Date(Date.UTC(2012, 1, 1, 10, 30)),
    until: new Date(Date.UTC(2012, 12, 31))
    I get 'SyntaxError: import declarations may only appear at top level of a module'
    I understand that the import directive is meant to apply to node.js implementations and not to the browser directly, but removing it does not improve things ('ReferenceError: RRule...')
    I am sure I am missing something here...
    David Golightly
    @Nycticorax when you import the rrule library directly as in jsfiddle, you can't use import - but you will find the library is available on the global variable rrule
    Excellent, that worked! Thank you very much
    Amine Daï

    Hi guys, i'm want to use the toText method but with another locale but i'm doing it wrong i guess since its not fully working
    I created a Language object that i have inserted as the second parameter of the toText method with every strings translated but i'm getting stuck with "tokens"

    Is there anyone that have used another language with the library ?

    Amine Daï
    I just found this issue: jakubroztocil/rrule#13
    Hi, is there an easy way to make toText() return values matching the local timezone?