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

Function beginningOfMinute

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

Source from the content-addressed store, hash-verified

1710
1711/** @internal */
1712export const beginningOfMinute = (now: number): number => {
1713 const date = new Date(now)
1714 return new Date(
1715 date.getFullYear(),
1716 date.getMonth(),
1717 date.getDate(),
1718 date.getHours(),
1719 date.getMinutes(),
1720 0,
1721 0
1722 ).getTime()
1723}
1724
1725/** @internal */
1726export const endOfMinute = (now: number): number => {

Callers 2

minuteOfHourFunction · 0.85
endOfMinuteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected