From cb2d2317d6c6c9473aafd8b20905f68a930681e9 Mon Sep 17 00:00:00 2001 From: Michael H Date: Wed, 12 Jun 2024 09:31:11 +0100 Subject: [PATCH] Update FromWindows64bitTimeStamp.mjs --- src/core/operations/FromWindows64bitTimeStamp.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/operations/FromWindows64bitTimeStamp.mjs b/src/core/operations/FromWindows64bitTimeStamp.mjs index 437a1f14..4e3a01e9 100644 --- a/src/core/operations/FromWindows64bitTimeStamp.mjs +++ b/src/core/operations/FromWindows64bitTimeStamp.mjs @@ -18,7 +18,6 @@ class FromWindows64bitTimestamp extends Operation { */ constructor() { super(); - this.name = "From Windows 64-bit Filetime Timestamp"; this.module = "Default"; this.description = "Converts Windows 64-bit Hex Filetime Timestamp to datetime string

e.g. 01CEE16F415343EE becomes 14 November 2013 19:21:19 UTC

windows 64-bit filetime timestamp is a 8 Byte Hex value representing the number of 100s of nanoseconds since January 1, 1601 UTC

Use with swap endianness recipe if required."; @@ -34,13 +33,10 @@ class FromWindows64bitTimestamp extends Operation { * @throws {OperationError} if invalid unit */ run(input, args) { - const h = parseInt(input, 16); const secs = h/10000000; const d = moment.unix(secs - 11644473600); return d.tz("UTC").format("ddd D MMMM YYYY HH:mm:ss") + " UTC"; - - throw new OperationError(); } }