@bbn/bbn 2.0.98 → 2.0.99
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/dt/classes/dt.js +1 -1
- package/package.json +1 -1
package/dist/dt/classes/dt.js
CHANGED
|
@@ -789,7 +789,7 @@ export class bbnDt {
|
|
|
789
789
|
}
|
|
790
790
|
fromNow(unit = '') {
|
|
791
791
|
const nowValue = bbnDt.nowForKind(this.kind);
|
|
792
|
-
const temp =
|
|
792
|
+
const temp = bbn.dt(nowValue, null, this.kind);
|
|
793
793
|
const rawDiffMs = this.diff(temp);
|
|
794
794
|
const chosenUnit = unitsCorrespondence[unit] || this.guessUnit(rawDiffMs);
|
|
795
795
|
if (!chosenUnit) {
|