Skip to content

Commit e463676

Browse files
Improve comment on approxTimeDuration
1 parent 9acbf27 commit e463676

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/web/utils/date.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ const APPROX_DAYS_PER_MONTH = 30;
280280

281281
/// Converts a duration which might have date units,
282282
/// to an approximate equivalent which only has time units.
283+
/// E.g. if the user asks to snooze something for 1 month (non-specific duration),
284+
/// we need to convert that to an amount of time by approximating hours/month.
283285
export function approxTimeDuration(
284286
duration: Temporal.Duration,
285287
): Temporal.Duration {

0 commit comments

Comments
 (0)