MCPcopy Create free account
hub / github.com/dfinity/orbit / endOfDay

Function endOfDay

apps/wallet/src/utils/date.utils.ts:12–17  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

10};
11
12export const endOfDay = (date: Date): Date => {
13 const dt = new Date(dateWithoutTimezone(date).getTime());
14 dt.setUTCHours(23, 59, 59, 999);
15
16 return dt;
17};
18
19interface ConvertDateOptions {
20 time?: 'keep' | 'start-of-day' | 'end-of-day';

Callers 2

date.utils.spec.tsFile · 0.90
convertDateFunction · 0.85

Calls 1

dateWithoutTimezoneFunction · 0.85

Tested by

no test coverage detected