utils/index.html

16 lines
330 B
HTML
Raw Permalink Normal View History

2024-10-17 10:24:18 -04:00
<!Doctype html>
<html>
<head>
<title>@ztimson/utils sandbox</title>
</head>
<body>
<script type="module">
2024-11-14 23:29:58 -05:00
import {adjustTz, formatDate} from './dist/index.mjs';
2024-10-17 10:24:18 -04:00
2024-11-14 23:29:58 -05:00
console.log(formatDate(new Date(), 'HH:mm:ss z'));
console.log(formatDate(adjustTz(new Date(), 0), 'HH:mm:ss z', 'UTC'));
2024-10-17 10:24:18 -04:00
</script>
</body>
</html>