small script API additions

This commit is contained in:
zadam
2019-11-27 23:07:10 +01:00
parent 0415efd33b
commit 1c057cac75
7 changed files with 307 additions and 9 deletions

View File

@@ -170,6 +170,10 @@ async function getDateNote(dateStr) {
return dateNote;
}
async function getTodayNote() {
return await getDateNote(dateUtils.localNowDate());
}
function getStartOfTheWeek(date, startOfTheWeek) {
const day = date.getDay();
let diff;
@@ -202,5 +206,6 @@ module.exports = {
getYearNote,
getMonthNote,
getWeekNote,
getDateNote
getDateNote,
getTodayNote
};