- Add GETTING_STARTED.md with quick start guide and development modes - Add INSTALL.sh automated installation script - Add INSTALLATION_CHECKLIST.md, INSTALLATION_SUCCESS.md, and INSTALLATION_SUMMARY.md - Add QUICK_REFERENCE.md for common commands - Add SETUP_GUIDE.md with detailed setup instructions - Update README.md with improved project overview - Add did-wallet app dependencies and node_modules
11 lines
336 B
TypeScript
11 lines
336 B
TypeScript
import { Instant } from './instant';
|
|
|
|
import JSBI from 'jsbi';
|
|
import { MILLION } from './ecmascript';
|
|
|
|
export function toTemporalInstant(this: Date) {
|
|
// Observable access to valueOf is not correct here, but unavoidable
|
|
const epochNanoseconds = JSBI.multiply(JSBI.BigInt(+this), MILLION);
|
|
return new Instant(epochNanoseconds);
|
|
}
|