Update ToUNIX32bitTimeStamp.mjs
This commit is contained in:
parent
a1ddeaffa3
commit
4565d85e33
@ -41,8 +41,8 @@ class ToUNIX32bitTimestamp extends Operation {
|
||||
* @throws {OperationError} if invalid unit
|
||||
*/
|
||||
run(input, args) {
|
||||
const [showDateTime] = args,
|
||||
d = moment.utc(input);
|
||||
const [showDateTime] = args,
|
||||
d = moment.utc(input);
|
||||
let result = d.unix();
|
||||
const hexString = result.toString(16);
|
||||
return showDateTime ? `${hexString.toUpperCase()} (${d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss")} UTC)` : hexString.toUpperCase();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user