2017-06-12 14:28:41 +02:00
|
|
|
/**
|
|
|
|
* DateTime tests.
|
|
|
|
*
|
|
|
|
* @author bwhitn [brian.m.whitney@outlook.com]
|
|
|
|
*
|
|
|
|
* @copyright Crown Copyright 2017
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
|
|
|
import TestRegister from "../../TestRegister.js";
|
|
|
|
|
|
|
|
TestRegister.addTests([
|
|
|
|
{
|
|
|
|
name: "Filetime to Unix",
|
|
|
|
input: "129207366395297693",
|
|
|
|
expectedOutput: "1276263039529769300",
|
|
|
|
recipeConfig: [
|
|
|
|
{
|
|
|
|
op: "Windows Filetime to UNIX Timestamp",
|
2017-07-03 17:25:14 +02:00
|
|
|
args: ["Nanoseconds (ns)", "Decimal"],
|
2017-06-12 14:28:41 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Unix to Filetime",
|
|
|
|
input: "1276263039529769300",
|
|
|
|
expectedOutput: "129207366395297693",
|
|
|
|
recipeConfig: [
|
|
|
|
{
|
|
|
|
op: "UNIX Timestamp to Windows Filetime",
|
2017-07-03 17:25:14 +02:00
|
|
|
args: ["Nanoseconds (ns)", "Decimal"],
|
2017-06-12 14:28:41 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]);
|