Sha256: e013f2d36b9b0f7d546e7102bc430acf9063e02ad287bee306915de97df6024f
Contents?: true
Size: 418 Bytes
Versions: 11
Compression:
Stored size: 418 Bytes
Contents
import { createDuration } from '../duration/create'; import { createLocal } from '../create/local'; export function to (time, withoutSuffix) { if (!this.isValid()) { return this.localeData().invalidDate(); } return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); } export function toNow (withoutSuffix) { return this.to(createLocal(), withoutSuffix); }
Version data entries
11 entries across 11 versions & 3 rubygems