MCPcopy Index your code
hub / github.com/Effect-TS/effect / beginningOfHour

Function beginningOfHour

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

Source from the content-addressed store, hash-verified

1740
1741/** @internal */
1742export const beginningOfHour = (now: number): number => {
1743 const date = new Date(now)
1744 return new Date(
1745 date.getFullYear(),
1746 date.getMonth(),
1747 date.getDate(),
1748 date.getHours(),
1749 0,
1750 0,
1751 0
1752 ).getTime()
1753}
1754
1755/** @internal */
1756export const endOfHour = (now: number): number => {

Callers 2

hourOfDayFunction · 0.85
endOfHourFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected