Sha256: 6b6a768291130033d678787ff9a7f10f1e311408ccbc7892673d2817db6df24b
Contents?: true
Size: 424 Bytes
Versions: 11
Compression:
Stored size: 424 Bytes
Contents
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); }
Version data entries
11 entries across 11 versions & 3 rubygems