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

Function endOfHour

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

Source from the content-addressed store, hash-verified

1762
1763/** @internal */
1764export const endOfHour = (now: number): number => {
1765 const date = new Date(beginningOfHour(now))
1766 return date.setHours(date.getHours() + 1)
1767}
1768
1769/** @internal */
1770export const nextHour = (now: number, hour: number, initial: boolean): number => {

Callers 1

hourOfDayFunction · 0.85

Calls 1

beginningOfHourFunction · 0.85

Tested by

no test coverage detected