You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
snippets-ts/index.html

20 lines
594 B

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="dist/index.js" type="module"></script>
</head>
<body>
<button class="tester">test</button>
<script type="module">
import {formatRelativeDate} from "./dist";
console.log(formatRelativeDate(new Date().getSeconds() - 20000, new Date().getSeconds()))
</script>
</body>
</html>