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

Function endOfSecond

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

Source from the content-addressed store, hash-verified

1686
1687/** @internal */
1688export const endOfSecond = (now: number): number => {
1689 const date = new Date(beginningOfSecond(now))
1690 return date.setSeconds(date.getSeconds() + 1)
1691}
1692
1693/** @internal */
1694export const nextSecond = (now: number, second: number, initial: boolean): number => {

Callers 2

cronFunction · 0.85
secondOfMinuteFunction · 0.85

Calls 1

beginningOfSecondFunction · 0.85

Tested by

no test coverage detected