vega-frontend-monorepo/libs/react-helpers/src/lib/time.ts
Bartłomiej Głownia 9486db134c
chore: replace Order type with existing OrderSubmissionBody['orderSubission'] (#1518)
* chore: replace Order type with existing OrderSubmissionBody['orderSubmission']

* chore: drop WithMarket from Order, Trade and Fill types

* chore: fix order list mock
2022-10-03 13:31:46 +02:00

4 lines
116 B
TypeScript

export const toNanoSeconds = (date: Date | string) => {
return new Date(date).getTime().toString() + '000000';
};