MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / isRecurringTaskCompleteForDate

Method isRecurringTaskCompleteForDate

src/main.ts:1318–1325  ·  view source on GitHub ↗

* Check if a recurring task is completed for a specific date

(task: TaskInfo, date: Date)

Source from the content-addressed store, hash-verified

1316 * Check if a recurring task is completed for a specific date
1317 */
1318 isRecurringTaskCompleteForDate(task: TaskInfo, date: Date): boolean {
1319 if (!task.recurrence) return false;
1320 const dateStr = formatDateForStorage(date);
1321 const completeInstances = Array.isArray(task.complete_instances)
1322 ? task.complete_instances
1323 : [];
1324 return completeInstances.includes(dateStr);
1325 }
1326
1327 /**
1328 * Formats time in minutes to a readable string

Calls 1

formatDateForStorageFunction · 0.90

Tested by

no test coverage detected