From: Remy Blom Date: Thu, 9 Oct 2014 07:23:09 +0000 (+0200) Subject: removed the unixms function in favor of valueOf() X-Git-Tag: 2.8.4~21^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95be1e31c0069d36c2045fa2302904ada1df95ba;p=thirdparty%2Fmoment.git removed the unixms function in favor of valueOf() --- 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); },