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

Function timeToUntilString

codebase/sources/dhtmlxscheduler.js:15852–15858  ·  view source on GitHub ↗
(time, utc)

Source from the content-addressed store, hash-verified

15850 });
15851 };
15852 var timeToUntilString = function(time, utc) {
15853 if (utc === void 0) {
15854 utc = true;
15855 }
15856 var date = new Date(time);
15857 return [padStart(date.getUTCFullYear().toString(), 4, "0"), padStart(date.getUTCMonth() + 1, 2, "0"), padStart(date.getUTCDate(), 2, "0"), "T", padStart(date.getUTCHours(), 2, "0"), padStart(date.getUTCMinutes(), 2, "0"), padStart(date.getUTCSeconds(), 2, "0"), utc ? "Z" : ""].join("");
15858 };
15859 var untilStringToDate = function(until) {
15860 var re = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/;
15861 var bits = re.exec(until);

Callers 3

dhtmlxscheduler.jsFile · 0.70
optionsToStringFunction · 0.70
rdatesToStringFunction · 0.70

Calls 1

padStartFunction · 0.70

Tested by

no test coverage detected