datefnsExample
Script
v6
Fork
1
2
3
4
export
let
datefnsExample
=
(
async
(
)
=>
{
const
{
add
,
formatRelative
}
=
await
import
(
"npm:date-fns"
)
;
return
formatRelative
(
add
(
new
Date
(
)
,
{
minutes
:
10
}
)
,
new
Date
(
)
)
;
}
)
(
)
;