MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isOverdue

Function isOverdue

packages/shared-domain/src/tasks.ts:344–347  ·  view source on GitHub ↗
(task: VaultTask, today: Date)

Source from the content-addressed store, hash-verified

342
343/** Helper for UIs that need to know whether a task is overdue relative to now. */
344export function isOverdue(task: VaultTask, today: Date): boolean {
345 if (task.checked || task.waiting || !task.due) return false
346 return task.due < toIsoDate(today)
347}
348
349/** Convert a Date to its `YYYY-MM-DD` representation in the user's local
350 * timezone — same encoding the parser produces for `due:`. Re-exported

Callers 1

TasksViewFunction · 0.50

Calls 1

toIsoDateFunction · 0.70

Tested by

no test coverage detected