aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/moment/from.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/src/lib/moment/from.js')
-rw-r--r--library/moment/src/lib/moment/from.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/library/moment/src/lib/moment/from.js b/library/moment/src/lib/moment/from.js
deleted file mode 100644
index c6a5449ff..000000000
--- a/library/moment/src/lib/moment/from.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { createDuration } from '../duration/create';
-import { createLocal } from '../create/local';
-
-export function from (time, withoutSuffix) {
- if (!this.isValid()) {
- return this.localeData().invalidDate();
- }
- return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
-}
-
-export function fromNow (withoutSuffix) {
- return this.from(createLocal(), withoutSuffix);
-}