From 95be1e31c0069d36c2045fa2302904ada1df95ba Mon Sep 17 00:00:00 2001 From: Remy Blom Date: Thu, 9 Oct 2014 09:23:09 +0200 Subject: [PATCH] removed the unixms function in favor of valueOf() --- moment.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/moment.js b/moment.js index 8217a7ade..7cafe5470 100644 --- a/moment.js +++ b/moment.js @@ -272,7 +272,7 @@ return this.zoneName(); }, x : function () { - return this.unixms(); + return this.valueOf(); }, X : function () { return this.unix(); @@ -1859,11 +1859,6 @@ return makeMoment(c).utc(); }; - // creating with unix offset (in milliseconds) - moment.unixms = function (input) { - return moment(input); - }; - // creating with unix timestamp (in seconds) moment.unix = function (input) { return moment(input * 1000); @@ -2100,10 +2095,6 @@ return +this._d + ((this._offset || 0) * 60000); }, - unixms: function () { - return +this; - }, - unix : function () { return Math.floor(+this / 1000); }, -- 2.47.2