Sha256: e3a1bf20be6c36fe67abd097662794cc9079a2126128ae6d4eea67c58c49bf7c
Contents?: true
Size: 343 Bytes
Versions: 8
Compression:
Stored size: 343 Bytes
Contents
import { createDuration } from '../duration/create'; import { createLocal } from '../create/local'; export function from (time, withoutSuffix) { return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); } export function fromNow (withoutSuffix) { return this.from(createLocal(), withoutSuffix); }
Version data entries
8 entries across 8 versions & 2 rubygems