fable 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/debug/Harness.js CHANGED
@@ -1,6 +1,23 @@
1
- // const libFable = require('../source/Fable.js');
1
+ const libFable = require('../source/Fable.js');
2
+
3
+ const _Fable = new libFable({"Product": "Harness"});
4
+
5
+ let tmpValue;
6
+
7
+ tmpValue = _Fable.Dates.dateDayDifference("2023-10-01", "2023-09-01");
8
+ console.log(`Difference in days: ${tmpValue}`);
9
+
10
+
11
+ tmpValue = _Fable.Dates.dateWeekDifference("2023-10-01", "2023-09-01");
12
+ console.log(`Difference in weeks: ${tmpValue}`);
13
+
14
+
15
+ tmpValue = _Fable.Dates.dateMonthDifference("2016-10-01", "2023-09-01");
16
+ console.log(`Difference in months: ${tmpValue}`);
17
+
18
+ tmpValue = _Fable.Dates.dateYearDifference("1963-10-01", "2023-09-01");
19
+ console.log(`Difference in years: ${tmpValue}`);
2
20
 
3
- // const _Fable = new libFable({"Product": "Hn"});
4
21
  // const _ExpressionParser = _Fable.instantiateServiceProviderIfNotExists('ExpressionParser');
5
22
 
6
23
  // const _Expression = "TotalCost = SUM(ItemCosts)";
@@ -32,4 +49,4 @@
32
49
  // }
33
50
  // console.log(`Result: ${tmpResult}`);
34
51
 
35
- const libMathHarness = require('../example_applications/mathematical_playground/Math-Solver-Harness.js');
52
+ //const libMathHarness = require('../example_applications/mathematical_playground/Math-Solver-Harness.js');