Files
semaphore/packages/data/src/utils.ts
cedoor fc2f648acc feat(data): create new data package
This new package allows devs to fetch on-chain data by using a Semaphore subgraph or the Ethers
library.

BREAKING CHANGE: The code of the old `@semaphore-protocol/subgraph` package has been moved to the
`@semaphore-protocol/data` package.

re #256
2023-03-06 17:43:42 +00:00

5 lines
162 B
TypeScript

// eslint-disable-next-line import/prefer-default-export
export function jsDateToGraphqlDate(date: Date): number {
return Math.round(date.getTime() / 1000)
}