diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-10-05 07:37:35 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-10-05 07:37:35 +0200 |
| commit | 0bab369a6bc6a64bfd8fedd577e69eb27bfb1178 (patch) | |
| tree | ac63289164efb0a9bd68097a5ec541b404825a2b /src/temporal-ambient.d.ts | |
| parent | a725d4c7d28fee701b6997cc46cffddefbcd26bf (diff) | |
Show time since done or lateness instead of the last-done date
Diffstat (limited to 'src/temporal-ambient.d.ts')
| -rw-r--r-- | src/temporal-ambient.d.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/temporal-ambient.d.ts b/src/temporal-ambient.d.ts index c5ec34f..38e69d4 100644 --- a/src/temporal-ambient.d.ts +++ b/src/temporal-ambient.d.ts @@ -10,6 +10,7 @@ declare global { }; interface Duration { + readonly days: number; total(options: { unit: 'millisecond' | 'day' }): number; } namespace Duration { @@ -47,6 +48,8 @@ declare global { readonly dayOfWeek: number; add(durationLike: DurationLike): PlainDate; subtract(durationLike: DurationLike): PlainDate; + /** Difference to another date; largest unit defaults to days. */ + until(other: PlainDate): Duration; toZonedDateTime(timeZone: TimeZoneId): ZonedDateTime; toString(): string; } |
