PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
moment
/
src
/
lib
/
moment
import { createDuration } from '../duration/create'; import { createLocal } from '../create/local'; import { isMoment } from '../moment/constructor'; export function to (time, withoutSuffix) { if (this.isValid() && ((isMoment(time) && time.isValid()) || createLocal(time).isValid())) { return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); } else { return this.localeData().invalidDate(); } } export function toNow (withoutSuffix) { return this.to(createLocal(), withoutSuffix); }
[-] valid.js
[edit]
[+]
..
[-] start-end-of.js
[edit]
[-] now.js
[edit]
[-] to.js
[edit]
[-] min-max.js
[edit]
[-] constructor.js
[edit]
[-] to-type.js
[edit]
[-] diff.js
[edit]
[-] get-set.js
[edit]
[-] creation-data.js
[edit]
[-] compare.js
[edit]
[-] format.js
[edit]
[-] prototype.js
[edit]
[-] add-subtract.js
[edit]
[-] calendar.js
[edit]
[-] locale.js
[edit]
[-] moment.js
[edit]
[-] from.js
[edit]
[-] clone.js
[edit]