MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / cssTimeToMs

Function cssTimeToMs

codebase/sources/dhtmlxscheduler.es.js:15350–15368  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

15348 };
15349 (function() {
15350 function cssTimeToMs(time) {
15351 time = time || "";
15352 var num = parseFloat(time), unit = time.match(/m?s/), milliseconds;
15353 if (unit) {
15354 unit = unit[0];
15355 }
15356 switch (unit) {
15357 case "s":
15358 milliseconds = num * 1e3;
15359 break;
15360 case "ms":
15361 milliseconds = num;
15362 break;
15363 default:
15364 milliseconds = 0;
15365 break;
15366 }
15367 return milliseconds;
15368 }
15369 scheduler2.hideQuickInfo = function(forced) {
15370 var qi = this._quick_info_box;
15371 var eventId = this._quick_info_box_id;

Callers 1

quick_infoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected