From 3eacc325a34ed65c3f49bf6bcae76f07589db060 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 13 Jun 2017 15:33:37 +0000 Subject: [PATCH] Improved descriptions for timestamp operations. --- src/core/config/OperationConfig.js | 16 ++++++++-------- src/core/operations/DateTime.js | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/core/config/OperationConfig.js b/src/core/config/OperationConfig.js index 9115f0de..585bf600 100755 --- a/src/core/config/OperationConfig.js +++ b/src/core/config/OperationConfig.js @@ -2231,7 +2231,7 @@ const OperationConfig = { ] }, "From UNIX Timestamp": { - description: "Converts a UNIX timestamp to a datetime string.

e.g. 978346800 becomes Mon 1 January 2001 11:00:00 UTC", + description: "Converts a UNIX timestamp to a datetime string.

e.g. 978346800 becomes Mon 1 January 2001 11:00:00 UTC

A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).", run: DateTime.runFromUnixTimestamp, inputType: "number", outputType: "string", @@ -2244,7 +2244,7 @@ const OperationConfig = { ] }, "To UNIX Timestamp": { - description: "Parses a datetime string in UTC and returns the corresponding UNIX timestamp.

e.g. Mon 1 January 2001 11:00:00 becomes 978346800", + description: "Parses a datetime string in UTC and returns the corresponding UNIX timestamp.

e.g. Mon 1 January 2001 11:00:00 becomes 978346800

A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).", run: DateTime.runToUnixTimestamp, inputType: "string", outputType: "number", @@ -2262,27 +2262,27 @@ const OperationConfig = { ] }, "Windows Filetime to UNIX Timestamp":{ - description: "Converts a Windows Filetime timestamp to a datetime format", + description: "Converts a Windows Filetime value to a UNIX timestamp.

A Windows Filetime is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 UTC.

A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).

This operation also supports UNIX timestamps in milliseconds, microseconds and nanoseconds.", run: DateTime.runFromFiletimeToUnix, inputType: "string", outputType: "string", args: [ { - name: "Output Units", - type: "Option", + name: "Output units", + type: "option", value: DateTime.UNITS } ] }, "UNIX Timestamp to Windows Filetime":{ - description: "Parses a datetime string in UTC and returns the corresponding Windows Filetime timestamp", + description: "Converts a UNIX timestamp to a Windows Filetime value.

A Windows Filetime is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 UTC.

A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).

This operation also supports UNIX timestamps in milliseconds, microseconds and nanoseconds.", run: DateTime.runToFiletimeFromUnix, inputType: "string", outputType: "string", args: [ { - name: "Input Units", - type: "Option", + name: "Input units", + type: "option", value: DateTime.UNITS } ] diff --git a/src/core/operations/DateTime.js b/src/core/operations/DateTime.js index a7a3c483..5262ecc4 100755 --- a/src/core/operations/DateTime.js +++ b/src/core/operations/DateTime.js @@ -81,11 +81,11 @@ const DateTime = { /** - * Converts a Windows FILETIME to Unix Epoch time. + * Windows Filetime to Unix Timestamp operation. * * @author bwhitn [brian.m.whitney@outlook.com] * @param {string} input - * @param {Object[]} args (not used) + * @param {Object[]} args * @returns {string} */ runFromFiletimeToUnix: function(input, args) { @@ -107,11 +107,11 @@ const DateTime = { /** - * Converts a Unix Epoch time to Windows FILETIME. + * Unix Timestamp to Windows Filetime operation. * * @author bwhitn [brian.m.whitney@outlook.com] * @param {string} input - * @param {Object[]} args (not used) + * @param {Object[]} args * @returns {string} */ runToFiletimeFromUnix: function(input, args) {