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

Function beginningOfHour

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

Source from the content-addressed store, hash-verified

1748
1749/** @internal */
1750export const beginningOfHour = (now: number): number => {
1751 const date = new Date(now)
1752 return new Date(
1753 date.getFullYear(),
1754 date.getMonth(),
1755 date.getDate(),
1756 date.getHours(),
1757 0,
1758 0,
1759 0
1760 ).getTime()
1761}
1762
1763/** @internal */
1764export const endOfHour = (now: number): number => {

Callers 2

hourOfDayFunction · 0.85
endOfHourFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected