diff --git a/src/core/config/OperationConfig.js b/src/core/config/OperationConfig.js index 7472e93f..e6d889e2 100755 --- a/src/core/config/OperationConfig.js +++ b/src/core/config/OperationConfig.js @@ -2268,7 +2268,7 @@ const OperationConfig = { outputType: "string", args: [ { - name: "Units", + name: "Output Units", type: "Option", value: DateTime.UNITS } @@ -2281,7 +2281,7 @@ const OperationConfig = { outputType: "string", args: [ { - name: "Units", + name: "Input Units", type: "Option", value: DateTime.UNITS } diff --git a/src/core/operations/DateTime.js b/src/core/operations/DateTime.js index c9d9645d..2a37ed47 100755 --- a/src/core/operations/DateTime.js +++ b/src/core/operations/DateTime.js @@ -1,5 +1,3 @@ -//import Decimal from "../lib/decimal.min.js"; -import Utils from "../Utils.js"; import {BigInteger} from "jsbn"; /** @@ -82,6 +80,13 @@ const DateTime = { }, + /** + *@constant + *@default + */ + RADIX: ["Decimal", "Hex"], + + /** * Converts a Windows FILETIME to Unix Epoch time. * @@ -92,7 +97,7 @@ const DateTime = { */ runFromFiletimeToUnix: function(input, args) { let units = args[0], offset = new BigInteger("116444736000000000"); - input = new BigInteger(input,16).subtract(offset); + input = new BigInteger(input).subtract(offset); if (units === "Seconds (s)"){ input = input.divide(new BigInteger("10000000")); } else if (units === "Milliseconds (ms)") {