MCPcopy
hub / github.com/jayfk/statuspage / vb

Function vb

statuspage/template/statuspage.js:205–216  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

203function sb(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return rb();for(d=b[0],e=1;e<b.length;++e)b[e].isValid()&&!b[e][a](d)||(d=b[e]);return d}
204// TODO: Use [].sort instead?
205function tb(){var a=[].slice.call(arguments,0);return sb("isBefore",a)}function ub(){var a=[].slice.call(arguments,0);return sb("isAfter",a)}function vb(a){var b=K(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;
206// representation for dateAddRemove
207this._milliseconds=+k+1e3*j+// 1000
2086e4*i+// 1000 * 60
2091e3*h*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
210// Because of dateAddRemove treats 24 hours as different from a
211// day when working around DST, we need to store them separately
212this._days=+g+7*f,
213// It is impossible translate months into days without knowing
214// which months you are are talking about, so we have to store
215// it separately.
216this._months=+e+3*d+12*c,this._data={},this._locale=ab(),this._bubble()}function wb(a){return a instanceof vb}
217// FORMATTING
218function xb(a,b){T(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+S(~~(a/60),2)+b+S(~~a%60,2)})}function yb(a,b){var c=(b||"").match(a)||[],d=c[c.length-1]||[],e=(d+"").match(Ef)||["-",0,0],f=+(60*e[1])+t(e[2]);return"+"===e[0]?f:-f}
219// Return a moment from input, that is local/utc/zone equivalent to model.

Callers

nothing calls this directly

Calls 2

KFunction · 0.85
abFunction · 0.85

Tested by

no test coverage detected