Improved descriptions for timestamp operations.

This commit is contained in:
n1474335 2017-06-13 15:33:37 +00:00
parent 15decd9cd9
commit 3eacc325a3
2 changed files with 12 additions and 12 deletions

View file

@ -2231,7 +2231,7 @@ const OperationConfig = {
] ]
}, },
"From UNIX Timestamp": { "From UNIX Timestamp": {
description: "Converts a UNIX timestamp to a datetime string.<br><br>e.g. <code>978346800</code> becomes <code>Mon 1 January 2001 11:00:00 UTC</code>", description: "Converts a UNIX timestamp to a datetime string.<br><br>e.g. <code>978346800</code> becomes <code>Mon 1 January 2001 11:00:00 UTC</code><br><br>A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).",
run: DateTime.runFromUnixTimestamp, run: DateTime.runFromUnixTimestamp,
inputType: "number", inputType: "number",
outputType: "string", outputType: "string",
@ -2244,7 +2244,7 @@ const OperationConfig = {
] ]
}, },
"To UNIX Timestamp": { "To UNIX Timestamp": {
description: "Parses a datetime string in UTC and returns the corresponding UNIX timestamp.<br><br>e.g. <code>Mon 1 January 2001 11:00:00</code> becomes <code>978346800</code>", description: "Parses a datetime string in UTC and returns the corresponding UNIX timestamp.<br><br>e.g. <code>Mon 1 January 2001 11:00:00</code> becomes <code>978346800</code><br><br>A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).",
run: DateTime.runToUnixTimestamp, run: DateTime.runToUnixTimestamp,
inputType: "string", inputType: "string",
outputType: "number", outputType: "number",
@ -2262,27 +2262,27 @@ const OperationConfig = {
] ]
}, },
"Windows Filetime to UNIX Timestamp":{ "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.<br><br>A Windows Filetime is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 UTC.<br><br>A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).<br><br>This operation also supports UNIX timestamps in milliseconds, microseconds and nanoseconds.",
run: DateTime.runFromFiletimeToUnix, run: DateTime.runFromFiletimeToUnix,
inputType: "string", inputType: "string",
outputType: "string", outputType: "string",
args: [ args: [
{ {
name: "Output Units", name: "Output units",
type: "Option", type: "option",
value: DateTime.UNITS value: DateTime.UNITS
} }
] ]
}, },
"UNIX Timestamp to Windows Filetime":{ "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.<br><br>A Windows Filetime is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 UTC.<br><br>A UNIX timestamp is a 32-bit value representing the number of seconds since January 1, 1970 UTC (the UNIX epoch).<br><br>This operation also supports UNIX timestamps in milliseconds, microseconds and nanoseconds.",
run: DateTime.runToFiletimeFromUnix, run: DateTime.runToFiletimeFromUnix,
inputType: "string", inputType: "string",
outputType: "string", outputType: "string",
args: [ args: [
{ {
name: "Input Units", name: "Input units",
type: "Option", type: "option",
value: DateTime.UNITS value: DateTime.UNITS
} }
] ]

View file

@ -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] * @author bwhitn [brian.m.whitney@outlook.com]
* @param {string} input * @param {string} input
* @param {Object[]} args (not used) * @param {Object[]} args
* @returns {string} * @returns {string}
*/ */
runFromFiletimeToUnix: function(input, args) { 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] * @author bwhitn [brian.m.whitney@outlook.com]
* @param {string} input * @param {string} input
* @param {Object[]} args (not used) * @param {Object[]} args
* @returns {string} * @returns {string}
*/ */
runToFiletimeFromUnix: function(input, args) { runToFiletimeFromUnix: function(input, args) {