Sha256: 9fa0903c27aca5319318acb683650ba7bc8623759f85ce9b6c673b0f6858f797

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 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()];
}

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
sedge_cms-0.0.1 vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.6 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.5 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.4 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.3 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.2 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
date_picker-0.0.1 test/dummy/vendor/assets/components/moment/src/lib/moment/to-type.js
puppet-herald-0.8.1 lib/puppet-herald/public/bower_components/moment/src/lib/moment/to-type.js
puppet-herald-0.8.0 lib/puppet-herald/public/bower_components/moment/src/lib/moment/to-type.js