about summary refs log tree commit diff stats
path: root/src/times.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.js')
-rw-r--r--src/times.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/times.js b/src/times.js
new file mode 100644
index 0000000..5615c19
--- /dev/null
+++ b/src/times.js
@@ -0,0 +1,7 @@
+import day from "dayjs";
+import utc from "dayjs/plugin/utc";
+day.extend(utc);
+
+export function formatUtc(date) {
+  return day.utc(date).format("HH:mm");
+}