Sha256: 3a839dea40aaf38a2a16b280459f2ccb1b5e06ba69c3c2028782f791d10fa842
Contents?: true
Size: 651 Bytes
Versions: 10
Compression:
Stored size: 651 Bytes
Contents
export function valueOf () { return +this._d - ((this._offset || 0) * 60000); } export function unix () { return Math.floor(+this / 1000); } export function toDate () { return this._offset ? new Date(+this) : this._d; } export function toArray () { var m = this; return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; } export function toObject () { var m = this; return { years: m.year(), months: m.month(), date: m.date(), hours: m.hours(), minutes: m.minutes(), seconds: m.seconds(), milliseconds: m.milliseconds() }; }
Version data entries
10 entries across 10 versions & 2 rubygems