We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9e5bb commit 1b1ebc4Copy full SHA for 1b1ebc4
src/lib/timespan.ts
@@ -1,4 +1,4 @@
1
-const ms = require('ms');
+import ms from 'ms';
2
3
export function timespan(time: string | number, iat?: number): number {
4
const timestamp = iat || Math.floor(Date.now() / 1000);
0 commit comments