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

Function beginningOfDay

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

Source from the content-addressed store, hash-verified

1786
1787/** @internal */
1788export const beginningOfDay = (now: number): number => {
1789 const date = new Date(now)
1790 return new Date(
1791 date.getFullYear(),
1792 date.getMonth(),
1793 date.getDate(),
1794 0,
1795 0,
1796 0,
1797 0
1798 ).getTime()
1799}
1800
1801/** @internal */
1802export 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