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

Function timeToUntilString

codebase/sources/dhtmlxscheduler.es.js:15848–15854  ·  view source on GitHub ↗
(time, utc)

Source from the content-addressed store, hash-verified

15846 });
15847};
15848var timeToUntilString = function(time, utc) {
15849 if (utc === void 0) {
15850 utc = true;
15851 }
15852 var date = new Date(time);
15853 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("");
15854};
15855var untilStringToDate = function(until) {
15856 var re = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/;
15857 var bits = re.exec(until);

Callers 3

optionsToStringFunction · 0.70
rdatesToStringFunction · 0.70

Calls 1

padStartFunction · 0.70

Tested by

no test coverage detected