@bbn/bbn 1.0.450 → 1.0.451
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/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/date.js +1 -1
- package/package.json +1 -1
package/dist/date.js
CHANGED
|
@@ -438,7 +438,7 @@ class bbnDateTool {
|
|
|
438
438
|
diff(date, unit = '', abs = false) {
|
|
439
439
|
const target = (date instanceof bbnDateTool) ? date.mtst : new Date(date).getTime();
|
|
440
440
|
const now = this.mtst;
|
|
441
|
-
let diff =
|
|
441
|
+
let diff = now - target;
|
|
442
442
|
if (abs) {
|
|
443
443
|
diff = Math.abs(diff);
|
|
444
444
|
}
|