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

Function endOfSecond

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

Source from the content-addressed store, hash-verified

1678
1679/** @internal */
1680export const endOfSecond = (now: number): number => {
1681 const date = new Date(beginningOfSecond(now))
1682 return date.setSeconds(date.getSeconds() + 1)
1683}
1684
1685/** @internal */
1686export 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…