From 5ffd4cb073d919b366477145c6cd3ab11b434401 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:17:07 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Documentation=20auto-update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/utils/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/utils/README.md b/packages/utils/README.md index f7133d3b..2575e3cd 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -55,6 +55,7 @@ npm i @dfinity/agent @dfinity/candid @dfinity/principal - [decodeBase32](#gear-decodebase32) - [bigEndianCrc32](#gear-bigendiancrc32) - [secondsToDuration](#gear-secondstoduration) +- [nowInBigIntNanoSeconds](#gear-nowinbigintnanoseconds) - [debounce](#gear-debounce) - [toNullable](#gear-tonullable) - [fromNullable](#gear-fromnullable) @@ -302,6 +303,16 @@ Parameters: [:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/utils/src/utils/date.utils.ts#L43) +#### :gear: nowInBigIntNanoSeconds + +Returns the current timestamp in nanoseconds as a `bigint`. + +| Function | Type | +| ------------------------ | -------------- | +| `nowInBigIntNanoSeconds` | `() => bigint` | + +[:link: Source](https://github.com/dfinity/ic-js/tree/main/packages/utils/src/utils/date.utils.ts#L115) + #### :gear: debounce | Function | Type |