mirror of
https://github.com/gchq/CyberChef.git
synced 2026-03-17 12:21:40 -07:00
Merge 4aad44c5cb into 4deaa0de20
This commit is contained in:
commit
76c9ceaeed
1 changed files with 3 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue