]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
removed the unixms function in favor of valueOf()
authorRemy Blom <remy.blom@hku.nl>
Thu, 9 Oct 2014 07:23:09 +0000 (09:23 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 17 Nov 2014 05:43:24 +0000 (21:43 -0800)
moment.js

index 8217a7ade7d1a496331580f6ea724c977ecc75ac..7cafe54704e0f88bec5622da32bcdd8e599daac6 100644 (file)
--- a/moment.js
+++ b/moment.js
                 return this.zoneName();
             },
             x    : function () {
-                return this.unixms();
+                return this.valueOf();
             },
             X    : function () {
                 return this.unix();
         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);
             return +this._d + ((this._offset || 0) * 60000);
         },
 
-        unixms: function () {
-            return +this;
-        },
-
         unix : function () {
             return Math.floor(+this / 1000);
         },