--- title: Date.prototype.setUTCMinutes() slug: Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes tags: - Date - JavaScript - Method - Prototype translation_of: Web/JavaScript/Reference/Global_Objects/Date/setUTCMinutes original_slug: Web/JavaScript/Referencje/Obiekty/Date/setUTCMinutes ---
{{JSRef}}
Ustawia minuty dla określonej daty stosownie do czasu uniwersalnego.
dateObj.setUTCMinutes(minutesValue[, secondsValue[, msValue]])
minutesValue secondsValue secondsValue, musisz także określić minutesValue.msValue msValue, musisz także określić minutesValue i secondsValue.Jeśli nie określono parametrów secondsValue i msValue, są użyte wartości zwracanych metod {{jsxref("Date.prototype.getUTCSeconds()", "getUTCSeconds()")}} i {{jsxref("Date.prototype.getUTCMilliseconds()", "getUTCMilliseconds()")}}.
Jeśli Twój parametr jest określony z poza szeregu, setUTCMinutes() próbuje zaktualizować informacje o dacie w obiekcie {{jsxref("Date")}}. Na przykład, jeśli użyjesz wartości 100 dla secondsValue, minuty (minutesValue) będą wzrastać o 1 (minutesValue + 1) i wartość 40 będzie użyta dla sekund.
setUTCMinutes()var theBigDay = new Date(); theBigDay.setUTCMinutes(43);