How to use the ember-power-select/utils/date-utils.add function in ember-power-select

To help you get started, we’ve selected a few ember-power-select examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});
github cibernox / ember-power-calendar / tests / dummy / app / controllers / legacy-demo.js View on Github external
init() {
    this._super(...arguments);
    this.set('tenDaysAgo', add(new Date(), -10, 'day'));
    this.set('threeDaysAgo', add(new Date(), -3, 'day'));
    this.set('threeDaysFromNow', add(new Date(), 3, 'day'));
    this.set('tomorrow', add(new Date(), 1, 'day'));
    this.set('tomorrowDate', add(new Date(), 1, 'day').toDate());
    this.set('pastMonth', add(new Date(), -1, 'month'));
    this.set('nextMonth', add(new Date(), 1, 'month'));
    this.set('februaryNextYear', new Date(2017, 1, 5));
    this.set('selected', add(new Date(), -15, 'day'));
    this.set('range', { start: add(new Date(), 2, 'day'), end: add(new Date(), 7, 'day') });
  }
});