MCPcopy Create free account
hub / github.com/Effect-TS/effect / beginningOfDay

Function beginningOfDay

packages/effect/src/internal/schedule.ts:1780–1791  ·  view source on GitHub ↗
(now: number)

Source from the content-addressed store, hash-verified

1778
1779/** @internal */
1780export const beginningOfDay = (now: number): number => {
1781 const date = new Date(now)
1782 return new Date(
1783 date.getFullYear(),
1784 date.getMonth(),
1785 date.getDate(),
1786 0,
1787 0,
1788 0,
1789 0
1790 ).getTime()
1791}
1792
1793/** @internal */
1794export const endOfDay = (now: number): number => {

Callers 3

dayOfMonthFunction · 0.85
dayOfWeekFunction · 0.85
endOfDayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…