From d6115661477665de4a9eec39321ac110b9994ed3 Mon Sep 17 00:00:00 2001 From: Ian Lee Date: Wed, 29 Oct 2025 21:12:55 -0700 Subject: [PATCH] Add support for minutes conversion Adds support for converting times from unix timestamps represented as minutes. --- src/core/operations/FromUNIXTimestamp.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/operations/FromUNIXTimestamp.mjs b/src/core/operations/FromUNIXTimestamp.mjs index 50d8539ea..34dc56eeb 100644 --- a/src/core/operations/FromUNIXTimestamp.mjs +++ b/src/core/operations/FromUNIXTimestamp.mjs @@ -73,6 +73,9 @@ class FromUNIXTimestamp extends Operation { if (units === "Seconds (s)") { d = moment.unix(input); return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC"; + } else if (units === "Minutes (m)") { + d = moment(input * 60); + return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss.SSS") + " UTC"; } else if (units === "Milliseconds (ms)") { d = moment(input); return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss.SSS") + " UTC";