Published
Edited
Aug 8, 2019
Insert cell
Insert cell
rschedule = import('@rschedule/rschedule@0.11.3')
Insert cell
// standardAdapter = import('https://unpkg.com/@rschedule/standard-date-adapter@0.11.0/build/module.js?module')
standardAdapter = import('@rschedule/standard-date-adapter@0.11.0')
Insert cell
rschedule.RScheduleConfig.defaultDateAdapter = standardAdapter.StandardDateAdapter;
Insert cell
// jsonTools = import('https://unpkg.com/@rschedule/json-tools@0.11.0/build/main.js?module')
jsonTools = import('@rschedule/json-tools')
Insert cell
Insert cell
rdates = new rschedule.Schedule({
rdates: [new standardAdapter.StandardDateAdapter(new Date(1969, 5, 5), {duration: 60000}),
new standardAdapter.StandardDateAdapter(new Date(1979, 5, 5), {duration: 60000})], // This works
dateAdapter: standardAdapter.StandardDateAdapter,
});
Insert cell
exdates = new rschedule.Schedule({
exdates: [new standardAdapter.StandardDateAdapter(new Date(1979, 5, 5), {duration: 60000})], // This works
dateAdapter: standardAdapter.StandardDateAdapter,
});
Insert cell
rrules = new rschedule.Schedule({
rrules: [{
frequency: 'WEEKLY',
start: new Date(2010, 1, 7),
data: 'Title of RULE',
//duration: 45454545,
count: 10
}],
dateAdapter: standardAdapter.StandardDateAdapter
});
Insert cell
exrules = new rschedule.Schedule({
rrules: [{
frequency: 'WEEKLY',
start: new Date(2010, 1, 7),
data: 'Title of RULE',
duration: 45454545,
count: 5
}],
dateAdapter: standardAdapter.StandardDateAdapter
});
Insert cell
calendar = new rschedule.Calendar().pipe(
rschedule.add(...[rdates, rrules]),
rschedule.subtract(exrules),
// rschedule.add(rdates),
// rschedule.subtract(exdates),
rschedule.unique(),
);

Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more