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

Function endOfMinute

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

Source from the content-addressed store, hash-verified

1724
1725/** @internal */
1726export const endOfMinute = (now: number): number => {
1727 const date = new Date(beginningOfMinute(now))
1728 return date.setMinutes(date.getMinutes() + 1)
1729}
1730
1731/** @internal */
1732export const nextMinute = (now: number, minute: number, initial: boolean): number => {

Callers 1

minuteOfHourFunction · 0.85

Calls 1

beginningOfMinuteFunction · 0.85

Tested by

no test coverage detected