We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acbf27 commit e463676Copy full SHA for e463676
1 file changed
app/web/utils/date.ts
@@ -280,6 +280,8 @@ const APPROX_DAYS_PER_MONTH = 30;
280
281
/// Converts a duration which might have date units,
282
/// 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.
285
export function approxTimeDuration(
286
duration: Temporal.Duration,
287
): Temporal.Duration {
0 commit comments