Skip to content

DateToProgressInput

Defined in: core/src/progress/progress-date.ts:40

Input of dateToProgress.

readonly calendar: WorkCalendar

Defined in: core/src/progress/progress-date.ts:28

The work calendar, used in 'working' mode.

ProgressSpan.calendar


readonly date: DateTimeMs

Defined in: core/src/progress/progress-date.ts:42

The progress boundary; dates outside the span are clamped to it.


readonly endExclusive: DateTimeMs

Defined in: core/src/progress/progress-date.ts:16

End of the span, exclusive (100 %).

ProgressSpan.endExclusive


readonly mode: "calendar" | "working"

Defined in: core/src/progress/progress-date.ts:26

What progress measures, the task’s durationMode: all time ('calendar') or only working time ('working'): with the weekend off, 50 % of Monday–Sunday is Wednesday 12:00 (before alignment), not Thursday 12:00. A span without working time falls back to calendar time.

ProgressSpan.mode


readonly start: DateTimeMs

Defined in: core/src/progress/progress-date.ts:14

Start of the span (0 %).

ProgressSpan.start