diff options
Diffstat (limited to 'library/moment/src/lib/moment/to-type.js')
-rw-r--r-- | library/moment/src/lib/moment/to-type.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/library/moment/src/lib/moment/to-type.js b/library/moment/src/lib/moment/to-type.js deleted file mode 100644 index 3008d95e3..000000000 --- a/library/moment/src/lib/moment/to-type.js +++ /dev/null @@ -1,29 +0,0 @@ -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() - }; -} |