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

Function beginningOfSecond

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

Source from the content-addressed store, hash-verified

1664
1665/** @internal */
1666export const beginningOfSecond = (now: number): number => {
1667 const date = new Date(now)
1668 return new Date(
1669 date.getFullYear(),
1670 date.getMonth(),
1671 date.getDate(),
1672 date.getHours(),
1673 date.getMinutes(),
1674 date.getSeconds(),
1675 0
1676 ).getTime()
1677}
1678
1679/** @internal */
1680export const endOfSecond = (now: number): number => {

Callers 3

cronFunction · 0.85
secondOfMinuteFunction · 0.85
endOfSecondFunction · 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…