Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%*
- const {getEvents} = this.app.plugins.plugins["google-calendar"].api;
- const file = await tp.file.title;
- const events = await getEvents({ startDate: window.moment(file) });
- var eventsString = await events.reduce((text, event) => text +=- [ ] ${moment(event.start.dateTime).format("HH:mm")} ${event.summary} \n, "");
- eventsString = eventsString.replace(/|/g, '-');
- //- test startTime13:30 endTime13:40
- //var eventsString = await events.reduce((text, event) => text +=- ${event.summary} startTime${moment(event.start.dateTime).format("HH:mm")} endTime${moment(event.end.dateTime).format("HH:mm")}\n, "");
- %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement