diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-03 10:07:18 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-03 10:07:18 +1100 |
| commit | 2e6463419e46ed21e8906f6519dc732398250583 (patch) | |
| tree | d91f41f83e208d1b42f97c2e9ada8257ac91de5a /src/lib.ts | |
| parent | 6f34c4c3aafee39f8c7ec41a7777c194443a27fa (diff) | |
| parent | d48f3b862fad74af6576297d471d7834b1f0bba8 (diff) | |
Merge branch 'frontend-update' into backend-update
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -363,8 +363,10 @@ if (DEBUG){ } } } -export function stepDate( // If stepping by month or years, leaves day value unchanged +export function stepDate( // Steps a date N units along a scale date: HistDate, scale: number, {forward=true, count=1, inplace=false} = {}): HistDate { + // If stepping by month or years, leaves day value unchanged + // Does not account for stepping a CalDate into before MIN_CAL_YEAR const newDate = inplace ? date : date.clone(); if (count < 0){ count = -count; |
