UNPKG

@botonic/plugin-contentful

Version:

Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet

18 lines 524 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DateRange = void 0; const tslib_1 = require("tslib"); tslib_1.__exportStar(require("./schedule"), exports); class DateRange { constructor(name, from, to) { this.name = name; this.from = from; this.to = to; } contains(date) { return (date.getTime() >= this.from.getTime() && date.getTime() < this.to.getTime()); } } exports.DateRange = DateRange; //# sourceMappingURL=index.js.map