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

Function beginningOfMinute

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

Source from the content-addressed store, hash-verified

1702
1703/** @internal */
1704export const beginningOfMinute = (now: number): number => {
1705 const date = new Date(now)
1706 return new Date(
1707 date.getFullYear(),
1708 date.getMonth(),
1709 date.getDate(),
1710 date.getHours(),
1711 date.getMinutes(),
1712 0,
1713 0
1714 ).getTime()
1715}
1716
1717/** @internal */
1718export const endOfMinute = (now: number): number => {

Callers 2

minuteOfHourFunction · 0.85
endOfMinuteFunction · 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…