Add support for minutes conversion

Adds support for converting times from unix timestamps represented as minutes.
This commit is contained in:
Ian Lee 2025-10-29 21:12:55 -07:00 committed by GitHub
parent 2a1294f1c0
commit d611566147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";